diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2014-01-26 00:51:09 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2014-01-27 14:41:38 +0000 |
commit | 285f7fb0f95e11c5d29af59462c58b8d0b2b9716 (patch) | |
tree | 9fbb0ccee43cb446c7cdfdf912a7b33c75e78b86 /apps/s_server.c | |
parent | ede90b1121b448395c8742166e19b2b475f14975 (diff) |
Add cert callback retry test.
(cherry picked from commit 3323314fc1c6d18e650a2de97f7cf9892ac92a60)
Diffstat (limited to 'apps/s_server.c')
-rw-r--r-- | apps/s_server.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/s_server.c b/apps/s_server.c index 8fbe9c5113..6aa4161b64 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -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) { |