]> granicus.if.org Git - curl/commitdiff
vtls: fix mbedtls multi non blocking handshake.
authorAntoine Aubert <a.aubert@overkiz.com>
Fri, 20 Jan 2017 07:10:28 +0000 (08:10 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 20 Jan 2017 07:31:03 +0000 (08:31 +0100)
When using multi, mbedtls handshake is in non blocking mode.  vtls must
set wait for read/write flags for the socket.

Closes #1223

lib/vtls/vtls.c

index fad9335bbf1259a5abd361cff42962548223170e..871622fef108e79381990ef4db4ced150cc5e5bd 100644 (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)
 {