From a344f58b207c696a11d464624631f728497c5147 Mon Sep 17 00:00:00 2001 From: Paul Aurich Date: Sat, 7 Sep 2013 13:31:41 -0700 Subject: [PATCH] context: Wrap find_ec_key in #ifndef OPENSSL_NO_ECDH "#ifndef OPENSSL_NO_ECDH" is a ridiculous conditional, by the way. --- src/context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/context.c b/src/context.c index 80b90ee..41bfa15 100644 --- a/src/context.c +++ b/src/context.c @@ -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 -------------------------------*/