summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2020-03-30 22:41:08 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2020-03-30 22:49:53 -0400
commitcb9e0f292b80fab21b4ee06daf5adabe07de1d66 (patch)
tree11aace083a0aaf68ecb9129c25d6ed248ba74d3c
parent194ce2f36649dffe2e4738065610aa82d65cc18c (diff)
downloadlighttpd1.4-personal/gstrauss/master.tar.gz
lighttpd1.4-personal/gstrauss/master.zip
[mod_openssl] SSL_R_UNEXPECTED_EOF_WHILE_READINGpersonal/gstrauss/master
report SSL_R_UNEXPECTED_EOF_WHILE_READING if debug.log-ssl-noise enabled SSL_R_UNEXPECTED_EOF_WHILE_READING added in openssl 1.1.1e and reverted in 1.1.1f, but kept in 3.0 branch
-rw-r--r--src/mod_openssl.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/mod_openssl.c b/src/mod_openssl.c
index 631c62fb..2c78c334 100644
--- a/src/mod_openssl.c
+++ b/src/mod_openssl.c
@@ -1989,15 +1989,18 @@ connection_read_cq_ssl (connection *con, chunkqueue *cq, off_t max_bytes)
while((ssl_err = ERR_get_error())) {
switch (ERR_GET_REASON(ssl_err)) {
case SSL_R_SSL_HANDSHAKE_FAILURE:
- #ifdef SSL_R_TLSV1_ALERT_UNKNOWN_CA
+ #ifdef SSL_R_UNEXPECTED_EOF_WHILE_READING
+ case SSL_R_UNEXPECTED_EOF_WHILE_READING:
+ #endif
+ #ifdef SSL_R_TLSV1_ALERT_UNKNOWN_CA
case SSL_R_TLSV1_ALERT_UNKNOWN_CA:
- #endif
- #ifdef SSL_R_SSLV3_ALERT_CERTIFICATE_UNKNOWN
+ #endif
+ #ifdef SSL_R_SSLV3_ALERT_CERTIFICATE_UNKNOWN
case SSL_R_SSLV3_ALERT_CERTIFICATE_UNKNOWN:
- #endif
- #ifdef SSL_R_SSLV3_ALERT_BAD_CERTIFICATE
+ #endif
+ #ifdef SSL_R_SSLV3_ALERT_BAD_CERTIFICATE
case SSL_R_SSLV3_ALERT_BAD_CERTIFICATE:
- #endif
+ #endif
if (!hctx->conf.ssl_log_noise) continue;
break;
default: