summaryrefslogtreecommitdiffstats
path: root/src/wrapper.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2011-06-14 22:53:53 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2011-06-14 22:57:43 +0200
commitdb2d0ebc44530ee101a40c3babbaa37ca3a13f00 (patch)
tree2631ef9fd637797e5c64c934ae700e0cdb65b282 /src/wrapper.c
parent583a7f933ab6491742035e217d4bff0b38a33b08 (diff)
downloadlibssh-db2d0ebc44530ee101a40c3babbaa37ca3a13f00.tar.gz
libssh-db2d0ebc44530ee101a40c3babbaa37ca3a13f00.tar.xz
libssh-db2d0ebc44530ee101a40c3babbaa37ca3a13f00.zip
Fix build with missing openssl/ecdh.h
Diffstat (limited to 'src/wrapper.c')
-rw-r--r--src/wrapper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wrapper.c b/src/wrapper.c
index 5a6ed08..c4ba7d5 100644
--- a/src/wrapper.c
+++ b/src/wrapper.c
@@ -111,8 +111,10 @@ void crypto_free(struct ssh_crypto_struct *crypto){
bignum_free(crypto->x);
bignum_free(crypto->y);
bignum_free(crypto->k);
+#ifdef HAVE_ECDH
SAFE_FREE(crypto->ecdh_client_pubkey);
SAFE_FREE(crypto->ecdh_server_pubkey);
+#endif
#ifdef WITH_LIBZ
if (crypto->compress_out_ctx &&