From 90236edee466b40fd1eb55f356d8fff30d5fba60 Mon Sep 17 00:00:00 2001 From: Bernd Mueller Date: Wed, 20 Feb 2019 14:21:10 +0100 Subject: OpenSSL: add support for TLS ASYNC state Closes #3591 --- lib/vtls/openssl.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib') 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; -- cgit v1.2.3