diff options
author | Damien Miller <djm@mindrot.org> | 2010-09-10 11:39:26 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2010-09-10 11:39:26 +1000 |
commit | 6af914a15c0c33e8b5bab5ca61919b8562ff1db9 (patch) | |
tree | b87546d8a88a05e6fd600cbb2b8c0b132278cb10 /packet.c | |
parent | 041ab7c1e7d6514ed84a539a767f79ffb356e807 (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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 | ||
644 | void | 645 | void |
645 | packet_put_ecpoint(const EC_GROUP *curve, const EC_POINT *point) | 646 | packet_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 | ||
1520 | void | 1523 | void |
1521 | packet_get_ecpoint(const EC_GROUP *curve, EC_POINT *point) | 1524 | packet_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 | ||
1526 | void * | 1530 | void * |
1527 | packet_get_raw(u_int *length_ptr) | 1531 | packet_get_raw(u_int *length_ptr) |