mirror of
https://github.com/nginx/nginx.git
synced 2026-05-13 09:36:42 +00:00
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.
This commit is contained in:
parent
aa09c19992
commit
abc72c5a57
1 changed files with 2 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue