Commit 070f67c0 authored by Doug MacEachern's avatar Doug MacEachern
Browse files

use ssl_asn1_table_keyfmt() function


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@93910 13f79535-47bb-0310-9956-ffa450edef68
parent 840ec64e
Loading
Loading
Loading
Loading
+4 −4
Changes for ssl_engine_pphrase.c: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -336,12 +336,12 @@ 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", NULL};
                    const char *key_types[] = {"RSA", "DSA"};
                    int i;

                    for (i=0; key_types[i]; i++) {
                        char *key_id =
                            apr_psprintf(p, "%s:%s", cpVHostID, key_types[i]);
                    for (i=0; i < SSL_AIDX_MAX; i++) {
                        const char *key_id =
                            ssl_asn1_table_keyfmt(p, cpVHostID, i);
                        ssl_asn1_t *asn1 = 
                            ssl_asn1_table_get(mc->tPrivateKey, key_id);