]> git.kaiwu.me - nginx.git/commitdiff
SSL: logging level of "bad record type" errors.
authorMurilo Andrade <murilo.b.andrade@gmail.com>
Tue, 9 Aug 2022 20:13:46 +0000 (17:13 -0300)
committerMurilo Andrade <murilo.b.andrade@gmail.com>
Tue, 9 Aug 2022 20:13:46 +0000 (17:13 -0300)
The SSL_R_BAD_RECORD_TYPE ("bad record type") errors are reported by
OpenSSL 1.1.1 or newer when using TLSv1.3 if the client sends a record
with unknown or unexpected type.  These errors are now logged at the
"info" level.

src/event/ngx_event_openssl.c

index 7b0417e4ff62b2e9081176c58d7bad43226ab635..bbeb5f0c5775b0c04aedf832ae9f1bc0350a9123 100644 (file)
@@ -3422,6 +3422,9 @@ ngx_ssl_connection_error(ngx_connection_t *c, int sslerr, ngx_err_t err,
 #endif
 #ifdef SSL_R_VERSION_TOO_LOW
             || n == SSL_R_VERSION_TOO_LOW                            /*  396 */
+#endif
+#ifdef SSL_R_BAD_RECORD_TYPE
+            || n == SSL_R_BAD_RECORD_TYPE                            /*  443 */
 #endif
             || n == 1000 /* SSL_R_SSLV3_ALERT_CLOSE_NOTIFY */
 #ifdef SSL_R_SSLV3_ALERT_UNEXPECTED_MESSAGE