- Fix configure to detect SSL_CTX_set_ecdh_auto.

git-svn-id: file:///svn/unbound/trunk@3453 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2015-07-21 14:30:49 +00:00
parent 78c8224655
commit 583b376217
7 changed files with 43 additions and 9 deletions
+1 -1
View File
@@ -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 SSL_CTX_SET_ECDH_AUTO
#ifdef 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)