Mercurial > hg > nginx
diff 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 |
line wrap: on
line diff
--- a/src/event/ngx_event_openssl.h Tue Aug 10 23:43:16 2021 +0300 +++ b/src/event/ngx_event_openssl.h Tue Aug 10 23:43:16 2021 +0300 @@ -69,6 +69,11 @@ #endif +#if (OPENSSL_VERSION_NUMBER < 0x30000000L && !defined ERR_peek_error_data) +#define ERR_peek_error_data(d, f) ERR_peek_error_line_data(NULL, NULL, d, f) +#endif + + typedef struct ngx_ssl_ocsp_s ngx_ssl_ocsp_t;