Skip to content

Commit e11ca4f

Browse files
committed
Added openssl SSLv3 compile option
1 parent 059468f commit e11ca4f

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

openssl/openssl-build-phase1.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,14 @@ usage ()
4040
echo
4141
echo -e "${bold}Usage:${normal}"
4242
echo
43-
echo -e " ${subbold}$0${normal} [-v ${dim}<openssl version>${normal}] [-s ${dim}<iOS SDK version>${normal}] [-t ${dim}<tvOS SDK version>${normal}] [-e] [-m] [-x] [-h]"
43+
echo -e " ${subbold}$0${normal} [-v ${dim}<openssl version>${normal}] [-s ${dim}<iOS SDK version>${normal}] [-t ${dim}<tvOS SDK version>${normal}] [-e] [-m] [-3] [-x] [-h]"
4444
echo
4545
echo " -v version of OpenSSL (default $OPENSSL_VERSION)"
4646
echo " -s iOS SDK version (default $IOS_MIN_SDK_VERSION)"
4747
echo " -t tvOS SDK version (default $TVOS_MIN_SDK_VERSION)"
4848
echo " -e compile with engine support"
4949
echo " -m compile Mac Catalyst library [beta]"
50+
echo " -3 compile with SSLv3 support"
5051
echo " -x disable color output"
5152
echo " -h show usage"
5253
echo
@@ -56,7 +57,7 @@ usage ()
5657

5758
engine=0
5859

59-
while getopts "v:s:t:emxh\?" o; do
60+
while getopts "v:s:t:emx3h\?" o; do
6061
case "${o}" in
6162
v)
6263
OPENSSL_VERSION="openssl-${OPTARG}"
@@ -82,6 +83,9 @@ while getopts "v:s:t:emxh\?" o; do
8283
alertdim=""
8384
archbold=""
8485
;;
86+
3)
87+
CUSTOMCONFIG="enable-ssl3 enable-ssl3-method enable-ssl-trace"
88+
;;
8589
*)
8690
usage
8791
;;

openssl/openssl-build-phase2.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,14 @@ usage ()
4040
echo
4141
echo -e "${bold}Usage:${normal}"
4242
echo
43-
echo -e " ${subbold}$0${normal} [-v ${dim}<openssl version>${normal}] [-s ${dim}<iOS SDK version>${normal}] [-t ${dim}<tvOS SDK version>${normal}] [-e] [-m] [-x] [-h]"
43+
echo -e " ${subbold}$0${normal} [-v ${dim}<openssl version>${normal}] [-s ${dim}<iOS SDK version>${normal}] [-t ${dim}<tvOS SDK version>${normal}] [-e] [-m] [-3] [-x] [-h]"
4444
echo
4545
echo " -v version of OpenSSL (default $OPENSSL_VERSION)"
4646
echo " -s iOS SDK version (default $IOS_MIN_SDK_VERSION)"
4747
echo " -t tvOS SDK version (default $TVOS_MIN_SDK_VERSION)"
4848
echo " -e compile with engine support"
4949
echo " -m compile Mac Catalyst library [beta]"
50+
echo " -3 compile with SSLv3 support"
5051
echo " -x disable color output"
5152
echo " -h show usage"
5253
echo
@@ -56,7 +57,7 @@ usage ()
5657

5758
engine=0
5859

59-
while getopts "v:s:t:emxh\?" o; do
60+
while getopts "v:s:t:emx3h\?" o; do
6061
case "${o}" in
6162
v)
6263
OPENSSL_VERSION="openssl-${OPTARG}"
@@ -82,6 +83,9 @@ while getopts "v:s:t:emxh\?" o; do
8283
alertdim=""
8384
archbold=""
8485
;;
86+
3)
87+
CUSTOMCONFIG="enable-ssl3 enable-ssl3-method enable-ssl-trace"
88+
;;
8589
*)
8690
usage
8791
;;

0 commit comments

Comments
 (0)