Handle SSL_ERROR_WANT_X509_LOOKUP
authorDr. Stephen Henson <steve@openssl.org>
Sun, 13 Sep 2015 18:04:58 +0000 (19:04 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 20 Sep 2015 13:22:52 +0000 (14:22 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit f1c412c9e63f7c9cac2c723bff09cce563dda1b0)

ssl/bio_ssl.c

index a0c583e34215b8965e76439a6e43d524ffefbb94..d2d4d2ea2d2dbb3fb5ee5e3131baf44f8c0553f6 100644 (file)
@@ -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;
         }