Mercurial > hg > nginx-quic
comparison src/event/ngx_event_openssl.h @ 8740:9b9299494238 stable-1.20
SSL: ERR_peek_error_line_data() compatibility with OpenSSL 3.0.
ERR_peek_error_line_data() was deprecated in favour of ERR_peek_error_all().
Here we use the ERR_peek_error_data() helper to pass only used arguments.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 10 Aug 2021 23:43:16 +0300 |
parents | c7c6a87c068d |
children | 8f7107617550 |
comparison
equal
deleted
inserted
replaced
8739:ddfad46492b5 | 8740:9b9299494238 |
---|---|
64 #endif | 64 #endif |
65 | 65 |
66 | 66 |
67 #if (OPENSSL_VERSION_NUMBER >= 0x30000000L && !defined SSL_get_peer_certificate) | 67 #if (OPENSSL_VERSION_NUMBER >= 0x30000000L && !defined SSL_get_peer_certificate) |
68 #define SSL_get_peer_certificate(s) SSL_get1_peer_certificate(s) | 68 #define SSL_get_peer_certificate(s) SSL_get1_peer_certificate(s) |
69 #endif | |
70 | |
71 | |
72 #if (OPENSSL_VERSION_NUMBER < 0x30000000L && !defined ERR_peek_error_data) | |
73 #define ERR_peek_error_data(d, f) ERR_peek_error_line_data(NULL, NULL, d, f) | |
69 #endif | 74 #endif |
70 | 75 |
71 | 76 |
72 typedef struct ngx_ssl_ocsp_s ngx_ssl_ocsp_t; | 77 typedef struct ngx_ssl_ocsp_s ngx_ssl_ocsp_t; |
73 | 78 |