diff options
author | Darren Tucker <dtucker@zip.com.au> | 2015-02-22 19:04:21 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2015-02-22 19:04:21 +0100 |
commit | f2004cd1adf34492eae0a44b1ef84e0e31b06088 (patch) | |
tree | c8173512b60c3b9719df735b9b6752bd58613fde /opacket.c | |
parent | Wrap stdint.h includes in ifdefs. (diff) | |
download | openssh-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 * |