]> git.kaiwu.me - nginx.git/commitdiff
SSL: logging level of "invalid alert" errors.
authorMaxim Dounin <mdounin@mdounin.ru>
Sun, 5 May 2024 21:07:18 +0000 (00:07 +0300)
committerAleksei Bavshin <a.bavshin@f5.com>
Tue, 14 Apr 2026 17:26:42 +0000 (11:26 -0600)
The SSL_R_INVALID_ALERT ("invalid alert") errors are reported by OpenSSL
1.1.1 or newer if the client sends a malformed alert.  These errors are
now logged at the "info" level.

Signed-off-by: Aleksei Bavshin <a.bavshin@nginx.com>
Origin: <https://freenginx.org/hg/nginx/rev/d89e0386b695>

src/event/ngx_event_openssl.c

index a466ec2b904a1ea8be064297c46ba28aa270ee27..74b2b0066ea81620e5881896418d15e7c767af10 100644 (file)
@@ -3897,6 +3897,9 @@ ngx_ssl_connection_error(ngx_connection_t *c, int sslerr, ngx_err_t err,
             || n == SSL_R_NO_SHARED_CIPHER                           /*  193 */
 #ifdef SSL_R_PACKET_LENGTH_TOO_LONG
             || n == SSL_R_PACKET_LENGTH_TOO_LONG                     /*  198 */
+#endif
+#ifdef SSL_R_INVALID_ALERT
+            || n == SSL_R_INVALID_ALERT                              /*  205 */
 #endif
             || n == SSL_R_RECORD_LENGTH_MISMATCH                     /*  213 */
 #ifdef SSL_R_TOO_MANY_WARNING_ALERTS