diff --git a/daemon/remote.c b/daemon/remote.c index fec046f9a..300948b32 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -258,7 +258,7 @@ daemon_remote_create(struct config_file* cfg) log_crypto_err("Error in SSL_CTX check_private_key"); goto setup_error; } -#ifdef HAVE_DECL_SSL_CTX_SET_ECDH_AUTO +#if HAVE_DECL_SSL_CTX_SET_ECDH_AUTO if(!SSL_CTX_set_ecdh_auto(rc->ctx,1)) { log_crypto_err("Error in SSL_CTX_ecdh_auto, not enabling ECDHE"); } diff --git a/testcode/petal.c b/testcode/petal.c index 3996cde8a..a54181c37 100644 --- a/testcode/petal.c +++ b/testcode/petal.c @@ -242,7 +242,7 @@ setup_ctx(char* key, char* cert) print_exit("cannot read key"); if(!SSL_CTX_check_private_key(ctx)) print_exit("private key is not correct"); -#ifdef HAVE_DECL_SSL_CTX_SET_ECDH_AUTO +#if HAVE_DECL_SSL_CTX_SET_ECDH_AUTO if (!SSL_CTX_set_ecdh_auto(ctx,1)) if(verb>=1) printf("failed to set_ecdh_auto, not enabling ECDHE\n"); #elif defined(USE_ECDSA) diff --git a/util/net_help.c b/util/net_help.c index b4703366c..07605b19f 100644 --- a/util/net_help.c +++ b/util/net_help.c @@ -647,7 +647,7 @@ void* listen_sslctx_create(char* key, char* pem, char* verifypem) SSL_CTX_free(ctx); return NULL; } -#ifdef HAVE_DECL_SSL_CTX_SET_ECDH_AUTO +#if HAVE_DECL_SSL_CTX_SET_ECDH_AUTO if(!SSL_CTX_set_ecdh_auto(ctx,1)) { log_crypto_err("Error in SSL_CTX_ecdh_auto, not enabling ECDHE"); }