during pass phrase entry.
* ssl_engine_pphrase.c (ssl_pphrase_Handle): Clear the OpenSSL error
stack before reading the private key.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@101515
13f79535-47bb-0310-9956-
ffa450edef68
cpPassPhraseCur = NULL;
ssl_pphrase_server_rec = s; /* to make up for sslc flaw */
+ /* Ensure that the error stack is empty; otherwise the
+ * OpenSSL UI code may dump it to stderr. */
+ ERR_clear_error();
+
bReadable = ((pPrivateKey = SSL_read_PrivateKey(szPath, NULL,
ssl_pphrase_Handle_CB, s)) != NULL ? TRUE : FALSE);