comparison src/event/ngx_event_openssl.c @ 7963: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 ddfad46492b5
children 1a03af395f44
comparison
equal deleted inserted replaced
7962:ddfad46492b5 7963:9b9299494238
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