diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-06-14 22:53:53 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-06-14 22:57:43 +0200 |
commit | db2d0ebc44530ee101a40c3babbaa37ca3a13f00 (patch) | |
tree | 2631ef9fd637797e5c64c934ae700e0cdb65b282 /include | |
parent | 583a7f933ab6491742035e217d4bff0b38a33b08 (diff) | |
download | libssh-db2d0ebc44530ee101a40c3babbaa37ca3a13f00.tar.gz libssh-db2d0ebc44530ee101a40c3babbaa37ca3a13f00.tar.xz libssh-db2d0ebc44530ee101a40c3babbaa37ca3a13f00.zip |
Fix build with missing openssl/ecdh.h
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/crypto.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libssh/crypto.h b/include/libssh/crypto.h index 60a93f07..2b155944 100644 --- a/include/libssh/crypto.h +++ b/include/libssh/crypto.h @@ -43,6 +43,7 @@ #ifdef HAVE_OPENSSL_ECDH_H #include <openssl/ecdh.h> #endif +#include "libssh/ecdh.h" enum ssh_key_exchange_e { /* diffie-hellman-group1-sha1 */ @@ -53,9 +54,11 @@ enum ssh_key_exchange_e { struct ssh_crypto_struct { bignum e,f,x,k,y; +#ifdef HAVE_ECDH EC_KEY *ecdh_privkey; ssh_string ecdh_client_pubkey; ssh_string ecdh_server_pubkey; +#endif ssh_string dh_server_signature; /* information used by dh_handshake. */ size_t digest_len; /* len of all the fields below */ unsigned char *session_id; |