]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_ssl: Silence info log message "SSL Library Error: error:0A000126:
authorRainer Jung <rjung@apache.org>
Wed, 30 Aug 2023 12:56:11 +0000 (12:56 +0000)
committerRainer Jung <rjung@apache.org>
Wed, 30 Aug 2023 12:56:11 +0000 (12:56 +0000)
         SSL routines::unexpected eof while reading" when using
         OpenSSL 3 by setting SSL_OP_IGNORE_UNEXPECTED_EOF if
         available. [Rainer Jung]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1912015 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_init.c

index 5baeb03abb076d2b3a483dc4e8e8f7328c0f6d73..56938868b846da1b9da1bd7086b85e7dfa157c83 100644 (file)
@@ -891,6 +891,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;
 }