CURL options to support connection options

e.g. to work behind a corporate proxy:
CURL_OPTIONS="--proxy http://corpproxy.pro"
This commit is contained in:
Alessandro Miliucci 2015-09-18 15:16:52 +02:00
parent 2996f574ee
commit 64b87a6aa6
1 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@
VERSION="1.0.2d" #
SDKVERSION=`xcrun -sdk iphoneos --show-sdk-version` #
CONFIG_OPTIONS=""
CURL_OPTIONS=""
# To set "enable-ec_nistp_64_gcc_128" configuration for x64 archs set next variable to "true"
ENABLE_EC_NISTP_64_GCC_128=""
@ -66,7 +67,7 @@ esac
set -e
if [ ! -e openssl-${VERSION}.tar.gz ]; then
echo "Downloading openssl-${VERSION}.tar.gz"
curl -O https://www.openssl.org/source/openssl-${VERSION}.tar.gz
curl ${CURL_OPTIONS} -O https://www.openssl.org/source/openssl-${VERSION}.tar.gz
else
echo "Using openssl-${VERSION}.tar.gz"
fi