summaryrefslogtreecommitdiff
path: root/opacket.c
diff options
context:
space:
mode:
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)
93 fatal("%s: %s", __func__, ssh_err(r)); 93 fatal("%s: %s", __func__, ssh_err(r));
94} 94}
95 95
96# ifdef OPENSSL_HAS_ECC
96void 97void
97ssh_packet_put_ecpoint(struct ssh *ssh, const EC_GROUP *curve, 98ssh_packet_put_ecpoint(struct ssh *ssh, const EC_GROUP *curve,
98 const EC_POINT *point) 99 const EC_POINT *point)
@@ -102,6 +103,7 @@ ssh_packet_put_ecpoint(struct ssh *ssh, const EC_GROUP *curve,
102 if ((r = sshpkt_put_ec(ssh, point, curve)) != 0) 103 if ((r = sshpkt_put_ec(ssh, point, curve)) != 0)
103 fatal("%s: %s", __func__, ssh_err(r)); 104 fatal("%s: %s", __func__, ssh_err(r));
104} 105}
106# endif
105#endif /* WITH_OPENSSL */ 107#endif /* WITH_OPENSSL */
106 108
107void 109void
@@ -165,6 +167,7 @@ ssh_packet_get_bignum2(struct ssh *ssh, BIGNUM * value)
165 fatal("%s: %s", __func__, ssh_err(r)); 167 fatal("%s: %s", __func__, ssh_err(r));
166} 168}
167 169
170# ifdef OPENSSL_HAS_ECC
168void 171void
169ssh_packet_get_ecpoint(struct ssh *ssh, const EC_GROUP *curve, EC_POINT *point) 172ssh_packet_get_ecpoint(struct ssh *ssh, const EC_GROUP *curve, EC_POINT *point)
170{ 173{
@@ -173,6 +176,7 @@ ssh_packet_get_ecpoint(struct ssh *ssh, const EC_GROUP *curve, EC_POINT *point)
173 if ((r = sshpkt_get_ec(ssh, point, curve)) != 0) 176 if ((r = sshpkt_get_ec(ssh, point, curve)) != 0)
174 fatal("%s: %s", __func__, ssh_err(r)); 177 fatal("%s: %s", __func__, ssh_err(r));
175} 178}
179# endif
176#endif /* WITH_OPENSSL */ 180#endif /* WITH_OPENSSL */
177 181
178void * 182void *