From: William A. Rowe Jr Date: Mon, 30 Jul 2001 22:34:21 +0000 (+0000) Subject: The short term hack. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c93031c4d97ad8428b904d83a7b760ce2d69966b;p=thirdparty%2Fapache%2Fhttpd.git The short term hack. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@89806 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/ssl_engine_pphrase.c b/ssl_engine_pphrase.c index aa8e8663761..c4799dad736 100644 --- a/ssl_engine_pphrase.c +++ b/ssl_engine_pphrase.c @@ -207,6 +207,14 @@ void ssl_pphrase_Handle(server_rec *s, apr_pool_t *p) if (sc->szPrivateKeyFile[j] != NULL) apr_cpystrn(szPath, sc->szPrivateKeyFile[j++], sizeof(szPath)); + if (sc->szPrivateKeyFile[j] == NULL) { + ssl_log(pServ, SSL_LOG_ERROR, + "Init: Server %s should be SSL-aware but " + "too few private key files were specified " + "[Hint: SSLCertificateKeyFile]", cpVHostID); + ssl_die(); + } + /* * Try to read the private key file with the help of * the callback function which serves the pass @@ -228,7 +236,7 @@ void ssl_pphrase_Handle(server_rec *s, apr_pool_t *p) nPassPhraseDialogCur = 0; bPassPhraseDialogOnce = TRUE; - pPrivateKey = NULL; + pPrivateKey = NULL; for (;;) { /*