[nginx] SSL: include correct OpenSSL headers.
mdounin at mdounin.ru
Wed Jul 9 01:49:39 UTC 2014
user: Piotr Sikora <piotr at cloudflare.com>
date: Sun Jul 06 16:41:13 2014 -0700
SSL: include correct OpenSSL headers.
Previously, <bn.h>, <dh.h>, <rand.h> and <rsa.h> were pulled in
by <engine.h> using OpenSSL's deprecated interface, which meant
that nginx couldn't have been built with -DOPENSSL_NO_DEPRECATED.
Both <x509.h> and <x509v3.h> are pulled in by <ocsp.h>, but we're
calling X509 functions directly, so let's include those as well.
<crypto.h> is pulled in by virtually everything, but we're calling
CRYPTO_add() directly, so let's include it as well.
Signed-off-by: Piotr Sikora <piotr at cloudflare.com>
src/event/ngx_event_openssl.h | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diffs (21 lines):
diff --git a/src/event/ngx_event_openssl.h b/src/event/ngx_event_openssl.h
@@ -14,10 +14,17 @@
#define NGX_SSL_NAME "OpenSSL"
More information about the nginx-devel