mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 00:11:13 +00:00
111cf1b9f3
This fixes the following security problem: https://curl.haxx.se/docs/adv_20170222.html Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
35 lines
1.3 KiB
Diff
35 lines
1.3 KiB
Diff
From a7b38c9dc98481e4a5fc37e51a8690337c674dfb Mon Sep 17 00:00:00 2001
|
|
From: Daniel Stenberg <daniel@haxx.se>
|
|
Date: Mon, 26 Dec 2016 00:06:33 +0100
|
|
Subject: [PATCH] vtls: s/SSLEAY/OPENSSL
|
|
|
|
Fixed an old leftover use of the USE_SSLEAY define which would make a
|
|
socket get removed from the applications sockets to monitor when the
|
|
multi_socket API was used, leading to timeouts.
|
|
|
|
Bug: #1174
|
|
---
|
|
lib/vtls/vtls.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/lib/vtls/vtls.c
|
|
+++ b/lib/vtls/vtls.c
|
|
@@ -484,7 +484,7 @@ void Curl_ssl_close_all(struct Curl_easy
|
|
curlssl_close_all(data);
|
|
}
|
|
|
|
-#if defined(USE_SSLEAY) || defined(USE_GNUTLS) || defined(USE_SCHANNEL) || \
|
|
+#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. */
|
|
int Curl_ssl_getsock(struct connectdata *conn, curl_socket_t *socks,
|
|
@@ -518,7 +518,7 @@ int Curl_ssl_getsock(struct connectdata
|
|
(void)numsocks;
|
|
return GETSOCK_BLANK;
|
|
}
|
|
-/* USE_SSLEAY || USE_GNUTLS || USE_SCHANNEL || USE_DARWINSSL || USE_NSS */
|
|
+/* USE_OPENSSL || USE_GNUTLS || USE_SCHANNEL || USE_DARWINSSL || USE_NSS */
|
|
#endif
|
|
|
|
void Curl_ssl_close(struct connectdata *conn, int sockindex)
|