diff --git a/wocky/wocky-openssl.c b/wocky/wocky-openssl.c index b5c03ca..7bc4e84 100644 --- a/wocky/wocky-openssl.c +++ b/wocky/wocky-openssl.c @@ -1693,6 +1693,7 @@ set_dh_parameters (WockyTLSSession *session) static void set_ecdh_key (WockyTLSSession *session) { +#ifndef OPENSSL_NO_EC EC_KEY *ecdh = EC_KEY_new_by_curve_name (NID_sect163r2); if (ecdh == NULL) { @@ -1701,6 +1702,7 @@ set_ecdh_key (WockyTLSSession *session) } SSL_CTX_set_tmp_ecdh (session->ctx,ecdh); EC_KEY_free (ecdh); +#endif } static void