]> granicus.if.org Git - curl/commitdiff
OpenSSL: add support for TLS ASYNC state
authorBernd Mueller <bermuell@cisco.com>
Wed, 20 Feb 2019 13:21:10 +0000 (14:21 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 25 Feb 2019 12:53:47 +0000 (13:53 +0100)
Closes #3591

lib/vtls/openssl.c

index 9d11b89e59462b26577b375181089136a4c27b2f..56e2ba2caac541eab3e442a2d54bf34ca64c8d91 100644 (file)
@@ -2808,6 +2808,12 @@ static CURLcode ossl_connect_step2(struct connectdata *conn, int sockindex)
       connssl->connecting_state = ssl_connect_2_writing;
       return CURLE_OK;
     }
+#ifdef SSL_ERROR_WANT_ASYNC
+    if(SSL_ERROR_WANT_ASYNC == detail) {
+      connssl->connecting_state = ssl_connect_2;
+      return CURLE_OK;
+    }
+#endif
     else {
       /* untreated error */
       unsigned long errdetail;