context: Wrap find_ec_key in #ifndef OPENSSL_NO_ECDH

"#ifndef OPENSSL_NO_ECDH" is a ridiculous conditional, by the way.
This commit is contained in:
Paul Aurich 2013-09-07 13:31:41 -07:00
parent 063e8a8a5c
commit a344f58b20

View File

@ -252,6 +252,7 @@ static int verify_cb(int preverify_ok, X509_STORE_CTX *x509_ctx)
return (verify & LSEC_VERIFY_CONTINUE ? 1 : preverify_ok);
}
#ifndef OPENSSL_NO_ECDH
static EC_KEY *find_ec_key(const char *str)
{
p_ec ptr;
@ -261,6 +262,7 @@ static EC_KEY *find_ec_key(const char *str)
}
return NULL;
}
#endif
/*------------------------------ Lua Functions -------------------------------*/