38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
From cf0c926f81418c5f8c9c2ea3dc9b61802ccabc1e Mon Sep 17 00:00:00 2001
|
|
From: Ruediger Pluem <rpluem@apache.org>
|
|
Date: Thu, 4 Jan 2024 15:40:36 +0000
|
|
Subject: [PATCH] Merge r1912015 from trunk:
|
|
|
|
mod_ssl: Silence info log message "SSL Library Error: error:0A000126:
|
|
SSL routines::unexpected eof while reading" when using
|
|
OpenSSL 3 by setting SSL_OP_IGNORE_UNEXPECTED_EOF if
|
|
available. [Rainer Jung]
|
|
|
|
Reviewed by: rjung, gbechis, rpluem
|
|
|
|
|
|
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1913012 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
diff --git a/modules/ssl/ssl_engine_init.c b/modules/ssl/ssl_engine_init.c
|
|
index 689d33e..f34dc8c 100644
|
|
--- a/modules/ssl/ssl_engine_init.c
|
|
+++ b/modules/ssl/ssl_engine_init.c
|
|
@@ -876,6 +876,14 @@ static apr_status_t ssl_init_ctx_protocol(server_rec *s,
|
|
SSL_CTX_set_options(ctx, SSL_OP_NO_RENEGOTIATION);
|
|
}
|
|
#endif
|
|
+
|
|
+#ifdef SSL_OP_IGNORE_UNEXPECTED_EOF
|
|
+ /* For server-side SSL_CTX, enable ignoring unexpected EOF */
|
|
+ /* (OpenSSL 1.1.1 behavioural compatibility).. */
|
|
+ if (!mctx->pkp) {
|
|
+ SSL_CTX_set_options(ctx, SSL_OP_IGNORE_UNEXPECTED_EOF);
|
|
+ }
|
|
+#endif
|
|
|
|
return APR_SUCCESS;
|
|
}
|
|
--
|
|
2.27.0
|
|
|