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_cb.c | |
parent | ede90b1121b448395c8742166e19b2b475f14975 (diff) |
Add cert callback retry test.
(cherry picked from commit 3323314fc1c6d18e650a2de97f7cf9892ac92a60)
Diffstat (limited to 'apps/s_cb.c')
-rw-r--r-- | apps/s_cb.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/s_cb.c b/apps/s_cb.c index 22506a6805..78f1d93c6c 100644 --- a/apps/s_cb.c +++ b/apps/s_cb.c @@ -1264,6 +1264,16 @@ static int set_cert_cb(SSL *ssl, void *arg) { int i, rv; SSL_EXCERT *exc = arg; +#ifdef CERT_CB_TEST_RETRY + static int retry_cnt; + if (retry_cnt < 5) + { + retry_cnt++; + fprintf(stderr, "Certificate callback retry test: count %d\n", + retry_cnt); + return -1; + } +#endif SSL_certs_clear(ssl); if (!exc) |