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 | ccc9bbad32962f2c4cdba7942a69f8ca80507bc7 (patch) | |
tree | ccbd448779f2cc0165f8650b47b6ff68878f8a82 /src | |
parent | 36af236d6e7102f8dfaacc7ea42112bbdeb76def (diff) | |
download | nginx-ccc9bbad32962f2c4cdba7942a69f8ca80507bc7.tar.gz nginx-ccc9bbad32962f2c4cdba7942a69f8ca80507bc7.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/event/ngx_event_openssl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/event/ngx_event_openssl.h b/src/event/ngx_event_openssl.h index 7fb4c5f8c..a70b86221 100644 --- a/src/event/ngx_event_openssl.h +++ b/src/event/ngx_event_openssl.h @@ -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; |