]> granicus.if.org Git - apache/commitdiff
Also clear the error queue before calling SSL_CTX_use_certificate[_chain]_file
authorKaspar Brand <kbrand@apache.org>
Fri, 18 Apr 2014 09:07:19 +0000 (09:07 +0000)
committerKaspar Brand <kbrand@apache.org>
Fri, 18 Apr 2014 09:07:19 +0000 (09:07 +0000)
(workaround for OpenSSL versions before 0.9.8h, see
https://rt.openssl.org/Ticket/Display.html?user=guest&pass=guest&id=1513).

PR 56410.

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

CHANGES
modules/ssl/ssl_engine_init.c

diff --git a/CHANGES b/CHANGES
index 71b2c25b55e70ac5e433b9c90bbc4fc525a6e6cd..25072b8650f20b55a8941e653089807e2d88a1f5 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,10 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) mod_ssl: add workaround for SSLCertificateFile when using OpenSSL
+     versions before 0.9.8h and not specifying an SSLCertificateChainFile
+     (regression introduced with 2.4.8). PR 56410. [Kaspar Brand]
+
   *) mod_remoteip: Prevent an external proxy from presenting an internal
      proxy. PR 55962. [Mike Rumph]
 
index 2aef8d6f79a4f5208a6da528a39e15822b7de187..e4f234630e9a5ff8197e5b093e10b8c9959bfe9c 100644 (file)
@@ -913,6 +913,8 @@ static apr_status_t ssl_init_server_certs(server_rec *s,
          i++) {
         key_id = apr_psprintf(ptemp, "%s:%d", vhost_id, i);
 
+        ERR_clear_error();
+
         /* first the certificate (public key) */
         if (mctx->cert_chain) {
             if ((SSL_CTX_use_certificate_file(mctx->ssl_ctx, certfile,