Mercurial > hg > nginx
comparison src/event/ngx_event_openssl.c @ 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 | 1e0fabbe01c7 |
children | 1a03af395f44 |
comparison
equal
deleted
inserted
replaced
7896:1e0fabbe01c7 | 7897:4195a6f0c61c |
---|---|
3278 if (ERR_peek_error()) { | 3278 if (ERR_peek_error()) { |
3279 p = ngx_cpystrn(p, (u_char *) " (SSL:", last - p); | 3279 p = ngx_cpystrn(p, (u_char *) " (SSL:", last - p); |
3280 | 3280 |
3281 for ( ;; ) { | 3281 for ( ;; ) { |
3282 | 3282 |
3283 n = ERR_peek_error_line_data(NULL, NULL, &data, &flags); | 3283 n = ERR_peek_error_data(&data, &flags); |
3284 | 3284 |
3285 if (n == 0) { | 3285 if (n == 0) { |
3286 break; | 3286 break; |
3287 } | 3287 } |
3288 | 3288 |