commit | 4df590cf8dc799e8986268d62019b487a8ed63ad | [log] [tgz] |
---|---|---|
author | Damien Miller <djm@google.com> | Wed Mar 11 10:02:39 2015 +1100 |
committer | Damien Miller <djm@google.com> | Wed Mar 11 10:02:39 2015 +1100 |
tree | bd451328d0b41c1155a9721456ad01497c7c7bdf | |
parent | 307bb40277ca2c32e97e61d70d1ed74b571fd6ba [diff] [blame] |
make unit tests work for !OPENSSH_HAS_ECC
diff --git a/kex.c b/kex.c index 2618e22..8c2b001 100644 --- a/kex.c +++ b/kex.c
@@ -432,9 +432,11 @@ #ifdef WITH_OPENSSL if (kex->dh) DH_free(kex->dh); +#ifdef OPENSSL_HAS_ECC if (kex->ec_client_key) EC_KEY_free(kex->ec_client_key); -#endif +#endif /* OPENSSL_HAS_ECC */ +#endif /* WITH_OPENSSL */ for (mode = 0; mode < MODE_MAX; mode++) { kex_free_newkeys(kex->newkeys[mode]); kex->newkeys[mode] = NULL;