mirror of
https://github.com/brunoos/luasec.git
synced 2024-11-08 06:28:26 +01:00
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:
parent
063e8a8a5c
commit
a344f58b20
@ -252,6 +252,7 @@ static int verify_cb(int preverify_ok, X509_STORE_CTX *x509_ctx)
|
|||||||
return (verify & LSEC_VERIFY_CONTINUE ? 1 : preverify_ok);
|
return (verify & LSEC_VERIFY_CONTINUE ? 1 : preverify_ok);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef OPENSSL_NO_ECDH
|
||||||
static EC_KEY *find_ec_key(const char *str)
|
static EC_KEY *find_ec_key(const char *str)
|
||||||
{
|
{
|
||||||
p_ec ptr;
|
p_ec ptr;
|
||||||
@ -261,6 +262,7 @@ static EC_KEY *find_ec_key(const char *str)
|
|||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*------------------------------ Lua Functions -------------------------------*/
|
/*------------------------------ Lua Functions -------------------------------*/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user