Add cert callback retry test.

(cherry picked from commit 3323314fc1)
This commit is contained in:
Dr. Stephen Henson
2014-01-26 00:51:09 +00:00
parent ede90b1121
commit 285f7fb0f9
2 changed files with 19 additions and 0 deletions

View File

@@ -2610,6 +2610,15 @@ static int init_ssl_connection(SSL *con)
i=SSL_accept(con);
#ifdef CERT_CB_TEST_RETRY
{
while (i <= 0 && SSL_get_error(con,i) == SSL_ERROR_WANT_X509_LOOKUP && SSL_state(con) == SSL3_ST_SR_CLNT_HELLO_C)
{
fprintf(stderr, "LOOKUP from certificate callback during accept\n");
i=SSL_accept(con);
}
}
#endif
#ifndef OPENSSL_NO_SRP
while (i <= 0 && SSL_get_error(con,i) == SSL_ERROR_WANT_X509_LOOKUP)
{