summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2021-08-10 23:43:16 +0300
committerSergey Kandaurov <pluknet@nginx.com>2021-08-10 23:43:16 +0300
commit3df7efd34b26328c94149b6828ea22bb73ce00a2 (patch)
tree35e25a9bfbffee7e566783325fdb342209981453
parent9609288e7ce4504188b0c8389bbc2f382eed14f5 (diff)
downloadnginx-3df7efd34b26328c94149b6828ea22bb73ce00a2.tar.gz
SSL: silenced warnings when building with OpenSSL 3.0.
The OPENSSL_SUPPRESS_DEPRECATED macro is used to suppress deprecation warnings. This covers Session Tickets keys, SSL Engine, DH low level API for DHE ciphers. Unlike OPENSSL_API_COMPAT, it works well with OpenSSL built with no-deprecated. In particular, it doesn't unhide various macros in OpenSSL includes, which are meant to be hidden under OPENSSL_NO_DEPRECATED.
-rw-r--r--src/event/ngx_event_openssl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event/ngx_event_openssl.h b/src/event/ngx_event_openssl.h
index a54a86a4e..81b87d7cb 100644
--- a/src/event/ngx_event_openssl.h
+++ b/src/event/ngx_event_openssl.h
@@ -12,6 +12,8 @@
#include <ngx_config.h>
#include <ngx_core.h>
+#define OPENSSL_SUPPRESS_DEPRECATED
+
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/bn.h>