1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-24 00:58:48 -05:00

OpenSSL: add support for TLS ASYNC state

Closes #3591
This commit is contained in:
Bernd Mueller 2019-02-20 14:21:10 +01:00 committed by Daniel Stenberg
parent 66637b4d8f
commit 90236edee4
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -2808,6 +2808,12 @@ static CURLcode ossl_connect_step2(struct connectdata *conn, int sockindex)
connssl->connecting_state = ssl_connect_2_writing; connssl->connecting_state = ssl_connect_2_writing;
return CURLE_OK; 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 { else {
/* untreated error */ /* untreated error */
unsigned long errdetail; unsigned long errdetail;