From db2d0ebc44530ee101a40c3babbaa37ca3a13f00 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Tue, 14 Jun 2011 22:53:53 +0200 Subject: Fix build with missing openssl/ecdh.h --- include/libssh/crypto.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/libssh/crypto.h') diff --git a/include/libssh/crypto.h b/include/libssh/crypto.h index 60a93f0..2b15594 100644 --- a/include/libssh/crypto.h +++ b/include/libssh/crypto.h @@ -43,6 +43,7 @@ #ifdef HAVE_OPENSSL_ECDH_H #include #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; -- cgit