SSL: SSL_get_peer_certificate() is deprecated in OpenSSL 3.0.

Switch to SSL_get1_peer_certificate() when building with OpenSSL 3.0
and OPENSSL_NO_DEPRECATED defined.
This commit is contained in:
Sergey Kandaurov 2021-08-10 23:43:16 +03:00
parent 36af236d6e
commit ccc9bbad32

View File

@ -64,6 +64,11 @@
#endif
#if (OPENSSL_VERSION_NUMBER >= 0x30000000L && !defined SSL_get_peer_certificate)
#define SSL_get_peer_certificate(s) SSL_get1_peer_certificate(s)
#endif
typedef struct ngx_ssl_ocsp_s ngx_ssl_ocsp_t;