httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ic...@apache.org
Subject svn commit: r1808122 - /httpd/httpd/trunk/modules/ssl/ssl_engine_init.c
Date Tue, 12 Sep 2017 14:27:47 GMT
Author: icing
Date: Tue Sep 12 14:27:47 2017
New Revision: 1808122

URL: http://svn.apache.org/viewvc?rev=1808122&view=rev
Log:
On the trunk:

mod_ssl: properly initializing server for fallback certificates provided by mod_md.


Modified:
    httpd/httpd/trunk/modules/ssl/ssl_engine_init.c

Modified: httpd/httpd/trunk/modules/ssl/ssl_engine_init.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ssl/ssl_engine_init.c?rev=1808122&r1=1808121&r2=1808122&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ssl/ssl_engine_init.c (original)
+++ httpd/httpd/trunk/modules/ssl/ssl_engine_init.c Tue Sep 12 14:27:47 2017
@@ -1737,11 +1737,12 @@ static apr_status_t ssl_init_server_ctx(
             }
             
             if (key_file && cert_file) {
+                ap_log_error(APLOG_MARK, APLOG_TRACE1, 0, s, 
+                             "%s: installing key=%s, cert=%s, chain=%s", 
+                             ssl_util_vhostid(p, s), key_file, cert_file, chain_file);
                 APR_ARRAY_PUSH(pks->key_files, const char *) = key_file;
                 APR_ARRAY_PUSH(pks->cert_files, const char *) = cert_file;
-                if (chain_file) {
-                    sc->server->cert_chain = chain_file;
-                }
+                sc->server->cert_chain = chain_file;
             }
             
             if (APR_STATUS_IS_EAGAIN(rv)) {
@@ -1751,7 +1752,6 @@ static apr_status_t ssl_init_server_ctx(
                              "host is part of a Managed Domain, but no SSL certificate is
"
                              "available (yet).", ssl_util_vhostid(p, s));
                 pks->service_unavailable = 1;
-                return APR_SUCCESS;
             }
             else if (rv != APR_SUCCESS) {
                 return rv;



Mime
View raw message