1
0

320-mbedtls-nonblocking-handshake.patch 1.1 KB

123456789101112131415161718192021222324252627
  1. From b993d2cca536870ecdf3b4611de9f77215af8eb8 Mon Sep 17 00:00:00 2001
  2. From: Antoine Aubert <a.aubert@overkiz.com>
  3. Date: Fri, 20 Jan 2017 08:10:28 +0100
  4. Subject: [PATCH] vtls: fix mbedtls multi non blocking handshake.
  5. When using multi, mbedtls handshake is in non blocking mode.
  6. vtls must set wait for read/write flags for the socket.
  7. ---
  8. lib/vtls/vtls.c | 5 +++--
  9. 1 file changed, 3 insertions(+), 2 deletions(-)
  10. diff --git a/lib/vtls/vtls.c b/lib/vtls/vtls.c
  11. index fad9335bbf..871622fef1 100644
  12. --- a/lib/vtls/vtls.c
  13. +++ b/lib/vtls/vtls.c
  14. @@ -485,8 +485,9 @@ void Curl_ssl_close_all(struct Curl_easy *data)
  15. }
  16. #if defined(USE_OPENSSL) || defined(USE_GNUTLS) || defined(USE_SCHANNEL) || \
  17. - defined(USE_DARWINSSL) || defined(USE_NSS)
  18. -/* This function is for OpenSSL, GnuTLS, darwinssl, and schannel only. */
  19. + defined(USE_DARWINSSL) || defined(USE_NSS) || defined(USE_MBEDTLS)
  20. +/* This function is for OpenSSL, GnuTLS, darwinssl, mbedtls, and schannel
  21. + only. */
  22. int Curl_ssl_getsock(struct connectdata *conn, curl_socket_t *socks,
  23. int numsocks)
  24. {