From 7551e55d6614cddb039602e08f3d7aa302299617 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 27 Jul 2017 18:30:11 +0200 Subject: [PATCH] darwinssl: fix variable type mistake (regression) ... which made --tlsv1.2 not work because it would blank the max tls version variable. Reported-by: Nick Miyake Bug: #1703 --- lib/vtls/darwinssl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vtls/darwinssl.c b/lib/vtls/darwinssl.c index dd1fc570a..b4b747ba4 100644 --- a/lib/vtls/darwinssl.c +++ b/lib/vtls/darwinssl.c @@ -1075,7 +1075,8 @@ CF_INLINE bool is_file(const char *filename) } #if CURL_BUILD_MAC_10_8 || CURL_BUILD_IOS -static CURLcode darwinssl_version_from_curl(long *darwinver, long ssl_version) +static CURLcode darwinssl_version_from_curl(SSLProtocol *darwinver, + long ssl_version) { switch(ssl_version) { case CURL_SSLVERSION_TLSv1_0: