summaryrefslogtreecommitdiffstats
path: root/opacket.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2015-02-22 19:04:21 +0100
committerDarren Tucker <dtucker@zip.com.au>2015-02-22 19:04:21 +0100
commitf2004cd1adf34492eae0a44b1ef84e0e31b06088 (patch)
treec8173512b60c3b9719df735b9b6752bd58613fde /opacket.c
parentWrap stdint.h includes in ifdefs. (diff)
downloadopenssh-f2004cd1adf34492eae0a44b1ef84e0e31b06088.tar.xz
openssh-f2004cd1adf34492eae0a44b1ef84e0e31b06088.zip
Repair for non-ECC OpenSSL.
Ifdef out the ECC parts when building with an OpenSSL that doesn't have it.
Diffstat (limited to 'opacket.c')
-rw-r--r--opacket.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/opacket.c b/opacket.c
index 7618eae48..dd443c331 100644
--- a/opacket.c
+++ b/opacket.c
@@ -93,6 +93,7 @@ ssh_packet_put_bignum2(struct ssh *ssh, BIGNUM * value)
fatal("%s: %s", __func__, ssh_err(r));
}
+# ifdef OPENSSL_HAS_ECC
void
ssh_packet_put_ecpoint(struct ssh *ssh, const EC_GROUP *curve,
const EC_POINT *point)
@@ -102,6 +103,7 @@ ssh_packet_put_ecpoint(struct ssh *ssh, const EC_GROUP *curve,
if ((r = sshpkt_put_ec(ssh, point, curve)) != 0)
fatal("%s: %s", __func__, ssh_err(r));
}
+# endif
#endif /* WITH_OPENSSL */
void
@@ -165,6 +167,7 @@ ssh_packet_get_bignum2(struct ssh *ssh, BIGNUM * value)
fatal("%s: %s", __func__, ssh_err(r));
}
+# ifdef OPENSSL_HAS_ECC
void
ssh_packet_get_ecpoint(struct ssh *ssh, const EC_GROUP *curve, EC_POINT *point)
{
@@ -173,6 +176,7 @@ ssh_packet_get_ecpoint(struct ssh *ssh, const EC_GROUP *curve, EC_POINT *point)
if ((r = sshpkt_get_ec(ssh, point, curve)) != 0)
fatal("%s: %s", __func__, ssh_err(r));
}
+# endif
#endif /* WITH_OPENSSL */
void *