From f1c412c9e63f7c9cac2c723bff09cce563dda1b0 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sun, 13 Sep 2015 19:04:58 +0100 Subject: [PATCH] Handle SSL_ERROR_WANT_X509_LOOKUP Reviewed-by: Rich Salz --- ssl/bio_ssl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ssl/bio_ssl.c b/ssl/bio_ssl.c index 639b10556a..a8260c9c43 100644 --- a/ssl/bio_ssl.c +++ b/ssl/bio_ssl.c @@ -407,6 +407,10 @@ static long ssl_ctrl(BIO *b, int cmd, long num, void *ptr) BIO_set_flags(b, BIO_FLAGS_IO_SPECIAL | BIO_FLAGS_SHOULD_RETRY); b->retry_reason = b->next_bio->retry_reason; break; + case SSL_ERROR_WANT_X509_LOOKUP: + BIO_set_retry_special(b); + b->retry_reason = BIO_RR_SSL_X509_LOOKUP; + break; default: break; } -- 2.25.1