Commit 32a08ae6 authored by Doug MacEachern's avatar Doug MacEachern
Browse files

use ssl_asn1_keystr


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@93913 13f79535-47bb-0310-9956-ffa450edef68
parent 22ac5add
Loading
Loading
Loading
Loading
+5 −8
Changes for ssl_engine_init.c: 5 added lines, 8 removed lines.
Original line number Diff line number Diff line
@@ -685,7 +685,7 @@ void ssl_init_ConfigureServer(server_rec *s,
                ssl_log(s, SSL_LOG_INFO,
                        "Init: (%s) %s server certificate enables "
                        "Server Gated Cryptography (SGC)", 
                        vhost_id, (i == SSL_AIDX_RSA ? "RSA" : "DSA"));
                        vhost_id, ssl_asn1_keystr(i));
            }

            if (SSL_X509_getBC(sc->pPublicCert[i], &is_ca, &pathlen)) {
@@ -694,7 +694,7 @@ void ssl_init_ConfigureServer(server_rec *s,
                            "Init: (%s) %s server certificate "
                            "is a CA certificate "
                            "(BasicConstraints: CA == TRUE !?)",
                            vhost_id, (i == SSL_AIDX_RSA ? "RSA" : "DSA"));
                            vhost_id, ssl_asn1_keystr(i));
                }

                if (pathlen > 0) {
@@ -702,8 +702,7 @@ void ssl_init_ConfigureServer(server_rec *s,
                            "Init: (%s) %s server certificate "
                            "is not a leaf certificate "
                            "(BasicConstraints: pathlen == %d > 0 !?)",
                            vhost_id, (i == SSL_AIDX_RSA ? "RSA" : "DSA"),
                            pathlen);
                            vhost_id, ssl_asn1_keystr(i), pathlen);
                }
            }

@@ -718,16 +717,14 @@ void ssl_init_ConfigureServer(server_rec *s,
                            "Init: (%s) %s server certificate "
                            "wildcard CommonName (CN) `%s' "
                            "does NOT match server name!?",
                            vhost_id, (i == SSL_AIDX_RSA ? "RSA" : "DSA"),
                            cp);
                            vhost_id, ssl_asn1_keystr(i), cp);
                }
                else if (strNE(s->server_hostname, cp)) {
                    ssl_log(s, SSL_LOG_WARN,
                            "Init: (%s) %s server certificate "
                            "CommonName (CN) `%s' "
                            "does NOT match server name!?",
                            vhost_id, (i == SSL_AIDX_RSA ? "RSA" : "DSA"),
                            cp);
                            vhost_id, ssl_asn1_keystr(i), cp);
                }
            }
        }
+1 −2
Changes for ssl_engine_pphrase.c: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -336,7 +336,6 @@ void ssl_pphrase_Handle(server_rec *s, apr_pool_t *p)
                 * are used to give a better idea as to what failed.
                 */
                if (pkey_mtime) {
                    const char *key_types[] = {"RSA", "DSA"};
                    int i;

                    for (i=0; i < SSL_AIDX_MAX; i++) {
@@ -349,7 +348,7 @@ void ssl_pphrase_Handle(server_rec *s, apr_pool_t *p)
                            ssl_log(pServ, SSL_LOG_INFO,
                                    "%s reusing existing "
                                    "%s private key on restart",
                                    cpVHostID, key_types[i]);
                                    cpVHostID, ssl_asn1_keystr(i));
                            return;
                        }
                    }