summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2010-09-10 11:39:26 +1000
committerDamien Miller <djm@mindrot.org>2010-09-10 11:39:26 +1000
commit6af914a15c0c33e8b5bab5ca61919b8562ff1db9 (patch)
treeb87546d8a88a05e6fd600cbb2b8c0b132278cb10 /packet.c
parent041ab7c1e7d6514ed84a539a767f79ffb356e807 (diff)
- (djm) [authfd.c authfile.c bufec.c buffer.h configure.ac kex.h kexecdh.c]
[kexecdhc.c kexecdhs.c key.c key.h myproposal.h packet.c readconf.c] [ssh-agent.c ssh-ecdsa.c ssh-keygen.c ssh.c] Disable ECDH and ECDSA on platforms that don't have the requisite OpenSSL support. ok dtucker@
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/packet.c b/packet.c
index a06c5e3ef..0018d5839 100644
--- a/packet.c
+++ b/packet.c
@@ -641,11 +641,13 @@ packet_put_bignum2(BIGNUM * value)
641 buffer_put_bignum2(&active_state->outgoing_packet, value); 641 buffer_put_bignum2(&active_state->outgoing_packet, value);
642} 642}
643 643
644#ifdef OPENSSL_HAS_ECC
644void 645void
645packet_put_ecpoint(const EC_GROUP *curve, const EC_POINT *point) 646packet_put_ecpoint(const EC_GROUP *curve, const EC_POINT *point)
646{ 647{
647 buffer_put_ecpoint(&active_state->outgoing_packet, curve, point); 648 buffer_put_ecpoint(&active_state->outgoing_packet, curve, point);
648} 649}
650#endif
649 651
650/* 652/*
651 * Finalizes and sends the packet. If the encryption key has been set, 653 * Finalizes and sends the packet. If the encryption key has been set,
@@ -1517,11 +1519,13 @@ packet_get_bignum2(BIGNUM * value)
1517 buffer_get_bignum2(&active_state->incoming_packet, value); 1519 buffer_get_bignum2(&active_state->incoming_packet, value);
1518} 1520}
1519 1521
1522#ifdef OPENSSL_HAS_ECC
1520void 1523void
1521packet_get_ecpoint(const EC_GROUP *curve, EC_POINT *point) 1524packet_get_ecpoint(const EC_GROUP *curve, EC_POINT *point)
1522{ 1525{
1523 buffer_get_ecpoint(&active_state->incoming_packet, curve, point); 1526 buffer_get_ecpoint(&active_state->incoming_packet, curve, point);
1524} 1527}
1528#endif
1525 1529
1526void * 1530void *
1527packet_get_raw(u_int *length_ptr) 1531packet_get_raw(u_int *length_ptr)