summaryrefslogtreecommitdiffhomepage
path: root/src/event
diff options
context:
space:
mode:
authorAleksei Bavshin <a.bavshin@nginx.com>2026-04-07 09:26:40 -0700
committerAleksei Bavshin <a.bavshin@f5.com>2026-04-14 11:26:42 -0600
commitabc72c5a57890ba4ce235fe3339dbf31af40604e (patch)
tree5c3a7dd6498fdc3dc28ae815d1e199ea4de0bd19 /src/event
parentaa09c199921fd104b42c234085146caa9c10b0c3 (diff)
downloadnginx-abc72c5a57890ba4ce235fe3339dbf31af40604e.tar.gz
nginx-abc72c5a57890ba4ce235fe3339dbf31af40604e.tar.bz2
SSL: compatibility with renamed error codes in OpenSSL 4.0.
SSL_R_SSL3_SESSION_ID_TOO_LONG is no longer available when building OpenSSL 4.0 with no-deprecated. Added the new name as a fallback.
Diffstat (limited to 'src/event')
-rw-r--r--src/event/ngx_event_openssl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c
index 74b2b0066..f04a462bf 100644
--- a/src/event/ngx_event_openssl.c
+++ b/src/event/ngx_event_openssl.c
@@ -3960,6 +3960,8 @@ ngx_ssl_connection_error(ngx_connection_t *c, int sslerr, ngx_err_t err,
#endif
#ifdef SSL_R_SSL3_SESSION_ID_TOO_LONG
|| n == SSL_R_SSL3_SESSION_ID_TOO_LONG /* 300 */
+#elif (defined SSL_R_TLS_SESSION_ID_TOO_LONG)
+ || n == SSL_R_TLS_SESSION_ID_TOO_LONG /* 300 */
#endif
#ifdef SSL_R_BAD_ECPOINT
|| n == SSL_R_BAD_ECPOINT /* 306 */