]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
darwinssl: fix variable type mistake (regression)
authorDaniel Stenberg <daniel@haxx.se>
Thu, 27 Jul 2017 16:30:11 +0000 (18:30 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 27 Jul 2017 16:30:11 +0000 (18:30 +0200)
... 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

index dd1fc570a299502b561f20d603b2654154af8378..b4b747ba43e0f270d39eaf7ad93c4349884c0e90 100644 (file)
@@ -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: