Mercurial > hg > nginx
comparison src/event/ngx_event_openssl.h @ 7898:8f7107617550
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.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 10 Aug 2021 23:43:16 +0300 |
parents | 4195a6f0c61c |
children | 509b663a789c |
comparison
equal
deleted
inserted
replaced
7897:4195a6f0c61c | 7898:8f7107617550 |
---|---|
9 #define _NGX_EVENT_OPENSSL_H_INCLUDED_ | 9 #define _NGX_EVENT_OPENSSL_H_INCLUDED_ |
10 | 10 |
11 | 11 |
12 #include <ngx_config.h> | 12 #include <ngx_config.h> |
13 #include <ngx_core.h> | 13 #include <ngx_core.h> |
14 | |
15 #define OPENSSL_SUPPRESS_DEPRECATED | |
14 | 16 |
15 #include <openssl/ssl.h> | 17 #include <openssl/ssl.h> |
16 #include <openssl/err.h> | 18 #include <openssl/err.h> |
17 #include <openssl/bn.h> | 19 #include <openssl/bn.h> |
18 #include <openssl/conf.h> | 20 #include <openssl/conf.h> |