Skip to content

Commit

Permalink
SSL: SSL_get_peer_certificate() is deprecated in OpenSSL 3.0.
Browse files Browse the repository at this point in the history
Switch to SSL_get1_peer_certificate() when building with OpenSSL 3.0
and OPENSSL_NO_DEPRECATED defined.
  • Loading branch information
pluknet committed Aug 10, 2021
1 parent 36af236 commit ccc9bba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/event/ngx_event_openssl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand Down

0 comments on commit ccc9bba

Please sign in to comment.