diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2021-08-10 23:43:16 +0300 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2021-08-10 23:43:16 +0300 |
commit | 2629145b2eee5eeb7c40a84663ec47d7a1814042 (patch) | |
tree | e579eb1ee196bd28fce5215dc23820b991df6018 | |
parent | cc5a6f5457c99bdd39b708832005ca57ff81c2dc (diff) | |
download | nginx-2629145b2eee5eeb7c40a84663ec47d7a1814042.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.h | 2 |
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> |