comparison src/event/ngx_event_openssl.h @ 7964:7b79f0944197 stable-1.20

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 9b9299494238
children 509b663a789c
comparison
equal deleted inserted replaced
7963:9b9299494238 7964:7b79f0944197
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>