vtls: fix mbedtls multi non blocking handshake.

When using multi, mbedtls handshake is in non blocking mode.  vtls must
set wait for read/write flags for the socket.

Closes #1223
This commit is contained in:
Antoine Aubert 2017-01-20 08:10:28 +01:00 committed by Daniel Stenberg
parent 6b7616690e
commit 06b1197eeb

View File

@ -485,8 +485,9 @@ void Curl_ssl_close_all(struct Curl_easy *data)
}
#if defined(USE_OPENSSL) || defined(USE_GNUTLS) || defined(USE_SCHANNEL) || \
defined(USE_DARWINSSL) || defined(USE_NSS)
/* This function is for OpenSSL, GnuTLS, darwinssl, and schannel only. */
defined(USE_DARWINSSL) || defined(USE_NSS) || defined(USE_MBEDTLS)
/* This function is for OpenSSL, GnuTLS, darwinssl, mbedtls, and schannel
only. */
int Curl_ssl_getsock(struct connectdata *conn, curl_socket_t *socks,
int numsocks)
{