From 204ebe31c5162f75c5bdc38d9e07a4329f853f65 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sun, 13 Sep 2015 19:04:58 +0100 Subject: Handle SSL_ERROR_WANT_X509_LOOKUP Reviewed-by: Rich Salz (cherry picked from commit f1c412c9e63f7c9cac2c723bff09cce563dda1b0) --- ssl/bio_ssl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ssl/bio_ssl.c b/ssl/bio_ssl.c index a0c583e..d2d4d2e 100644 --- a/ssl/bio_ssl.c +++ b/ssl/bio_ssl.c @@ -419,6 +419,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; } -- 1.7.12.1