1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

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
This commit is contained in:
Daniel Stenberg 2017-07-27 18:30:11 +02:00
parent 02c7a2ccab
commit 7551e55d66

View File

@ -1075,7 +1075,8 @@ CF_INLINE bool is_file(const char *filename)
} }
#if CURL_BUILD_MAC_10_8 || CURL_BUILD_IOS #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) { switch(ssl_version) {
case CURL_SSLVERSION_TLSv1_0: case CURL_SSLVERSION_TLSv1_0: