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");
}
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)
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");
}