curl: modernize usage of Secure Transport and OpenSSL
curl: modernize usage of Secure Transport and OpenSSL

The openssl that ships with OS X does not support TLS 1.1 or 1.2. This
is a security issue for for applications that use functionality from
libssl.

On 10.8 and newer, Apple has deprecated use of openssl and added support
for TLS 1.1 and 1.2 to its Secure Transport framework (or "darwinssl" in
curl). On older versions of OS X, a newer openssl is required to obtain
such functionality.

Thus, we default to using darwinssl where it makes sense. An option to
use Homebrew's openssl is provided. On platforms where Secure Transport
does not support the newer protocols, we simply use Homebrew's openssl.

Closes Homebrew/homebrew#25824.

bcg62/homebrew-core,j-bennet/homebrew-core,mfikes/homebrew-core,FinalDes/homebrew-core,tkoenig/homebrew-core,nbari/homebrew-core,edporras/homebrew-core,forevergenin/homebrew-core,phusion/homebrew-core,maxim-belkin/homebrew-core,sjackman/homebrew-core,lemzwerg/homebrew-core,filcab/homebrew-core,wolffaxn/homebrew-core,mvitz/homebrew-core,straxhaber/homebrew-core,jabenninghoff/homebrew-core,ilovezfs/homebrew-core,passerbyid/homebrew-core,lemzwerg/homebrew-core,dsXLII/homebrew-core,kunickiaj/homebrew-core,bcg62/homebrew-core,rwhogg/homebrew-core,cblecker/homebrew-core,lasote/homebrew-core,kunickiaj/homebrew-core,chrisfinazzo/homebrew-core,forevergenin/homebrew-core,dsXLII/homebrew-core,gserra-olx/homebrew-core,maxim-belkin/homebrew-core,aren55555/homebrew-core,Homebrew/homebrew-core,wolffaxn/homebrew-core,DomT4/homebrew-core,zmwangx/homebrew-core,ilovezfs/homebrew-core,Homebrew/homebrew-core,battlemidget/homebrew-core,jdubois/homebrew-core,DomT4/homebrew-core,jdubois/homebrew-core,jabenninghoff/homebrew-core,phusion/homebrew-core,zyedidia/homebrew-core,uyjulian/homebrew-core,grhawk/homebrew-core,spaam/homebrew-core,jvehent/homebrew-core,passerbyid/homebrew-core,robohack/homebrew-core,FinalDes/homebrew-core,mbcoguno/homebrew-core,jdubois/homebrew-core,battlemidget/homebrew-core,LinuxbrewTestBot/homebrew-core,jvillard/homebrew-core,jvehent/homebrew-core,jvillard/homebrew-core,ylluminarious/homebrew-core,mvbattista/homebrew-core,stgraber/homebrew-core,JCount/homebrew-core,straxhaber/homebrew-core,reelsense/homebrew-core,sjackman/homebrew-core,zmwangx/homebrew-core,fvioz/homebrew-core,ShivaHuang/homebrew-core,chrisfinazzo/homebrew-core,stgraber/homebrew-core,wolffaxn/homebrew-core,Moisan/homebrew-core,uyjulian/homebrew-core,aabdnn/homebrew-core,mbcoguno/homebrew-core,adamliter/homebrew-core,BrewTestBot/homebrew-core,ShivaHuang/homebrew-core,rwhogg/homebrew-core,mfikes/homebrew-core,aabdnn/homebrew-core,git-lfs/homebrew-core,tkoenig/homebrew-core,LinuxbrewTestBot/homebrew-core,git-lfs/homebrew-core,smessmer/homebrew-core,kuahyeow/homebrew-core,bfontaine/homebrew-core,jvillard/homebrew-core,grhawk/homebrew-core,adamliter/homebrew-core,nandub/homebrew-core,mvitz/homebrew-core,bigbes/homebrew-core,mbcoguno/homebrew-core,BrewTestBot/homebrew-core,j-bennet/homebrew-core,andyjeffries/homebrew-core,lembacon/homebrew-core,fvioz/homebrew-core,aren55555/homebrew-core,lembacon/homebrew-core,Linuxbrew/homebrew-core,makigumo/homebrew-core,edporras/homebrew-core,kuahyeow/homebrew-core,sdorra/homebrew-core,makigumo/homebrew-core,mvitz/homebrew-core,Linuxbrew/homebrew-core,moderndeveloperllc/homebrew-core,lasote/homebrew-core,zyedidia/homebrew-core,filcab/homebrew-core,bcg62/homebrew-core,JCount/homebrew-core,Moisan/homebrew-core,adam-moss/homebrew-core,sdorra/homebrew-core,gserra-olx/homebrew-core,spaam/homebrew-core,andyjeffries/homebrew-core,cblecker/homebrew-core,bigbes/homebrew-core,adam-moss/homebrew-core,nbari/homebrew-core,reelsense/homebrew-core,mahori/homebrew-core,mvbattista/homebrew-core,robohack/homebrew-core,mahori/homebrew-core,ylluminarious/homebrew-core,smessmer/homebrew-core,nandub/homebrew-core,bfontaine/homebrew-core,moderndeveloperllc/homebrew-core,lembacon/homebrew-core