comparison src/event/ngx_event_openssl.h @ 7897:4195a6f0c61c

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 8ebda26e4f98
children 8f7107617550
comparison
equal deleted inserted replaced
7896:1e0fabbe01c7 7897:4195a6f0c61c
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