From: Sergey Kandaurov Date: Tue, 10 Aug 2021 20:43:16 +0000 (+0300) Subject: SSL: silenced warnings when building with OpenSSL 3.0. X-Git-Tag: release-1.21.2~20 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=3df7efd34b26328c94149b6828ea22bb73ce00a2;p=nginx.git 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. --- 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 #include +#define OPENSSL_SUPPRESS_DEPRECATED + #include #include #include