From 1d7d43f9b53bb761674f78696b054510c263fb80 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Tue, 21 Jul 2015 14:37:15 +0000 Subject: [PATCH] Fixup #if git-svn-id: file:///svn/unbound/trunk@3454 be551aaa-1e26-0410-a405-d3ace91eadb9 --- daemon/remote.c | 2 +- testcode/petal.c | 2 +- util/net_help.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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"); } -- 2.47.2