From f0e05f3d89315c0513ab01573e822bee0e31dcc4 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Sun, 6 Jul 2014 16:41:13 -0700 Subject: [PATCH] SSL: include correct OpenSSL headers. Previously, , , and were pulled in by using OpenSSL's deprecated interface, which meant that nginx couldn't have been built with -DOPENSSL_NO_DEPRECATED. Both and are pulled in by , but we're calling X509 functions directly, so let's include those as well. 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 --- src/event/ngx_event_openssl.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/event/ngx_event_openssl.h b/src/event/ngx_event_openssl.h index 0194602f6..174c8651d 100644 --- a/src/event/ngx_event_openssl.h +++ b/src/event/ngx_event_openssl.h @@ -14,10 +14,17 @@ #include #include +#include #include +#include +#include #include #include #include +#include +#include +#include +#include #define NGX_SSL_NAME "OpenSSL"