aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBernd Mueller <bermuell@cisco.com>2019-02-20 14:21:10 +0100
committerDaniel Stenberg <daniel@haxx.se>2019-02-25 13:53:47 +0100
commit90236edee466b40fd1eb55f356d8fff30d5fba60 (patch)
treee949845f61b0371ab292f03e44c9b2677a861493 /lib
parent66637b4d8fbc52aa1b57845cf45c7ccc7a95880f (diff)
OpenSSL: add support for TLS ASYNC state
Closes #3591
Diffstat (limited to 'lib')
-rw-r--r--lib/vtls/openssl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 9d11b89e5..56e2ba2ca 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -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;