diff options
author | Nick Zitzmann <nickzman@gmail.com> | 2013-11-12 20:26:20 -0600 |
---|---|---|
committer | Nick Zitzmann <nickzman@gmail.com> | 2013-11-12 20:26:20 -0600 |
commit | dbe228353dab77136984e389c015be95a1c1cb3a (patch) | |
tree | cefc3ace78d42c8ce769a965f04616af669e6a81 /lib | |
parent | bf77101e5c132572a7abeeec1ae8b3b0174d2831 (diff) |
darwinssl: check for SSLSetSessionOption() presence when toggling BEAST
Even though this is only a formality (since not many people build on
Mavericks while targeting Leopard), since we still support Leopard
at the earliest, we might as well be pedantic.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/curl_darwinssl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/curl_darwinssl.c b/lib/curl_darwinssl.c index 25cf3d14d..78b5200ea 100644 --- a/lib/curl_darwinssl.c +++ b/lib/curl_darwinssl.c @@ -1439,7 +1439,8 @@ static CURLcode darwinssl_connect_step1(struct connectdata *conn, #if CURL_BUILD_MAC_10_9 || CURL_BUILD_IOS_7 /* We want to enable 1/n-1 when using a CBC cipher unless the user specifically doesn't want us doing that: */ - SSLSetSessionOption(connssl->ssl_ctx, kSSLSessionOptionSendOneByteRecord, + if(SSLSetSessionOption != NULL) + SSLSetSessionOption(connssl->ssl_ctx, kSSLSessionOptionSendOneByteRecord, !data->set.ssl_enable_beast); #endif /* CURL_BUILD_MAC_10_9 || CURL_BUILD_IOS_7 */ |