Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

Commit

Permalink
OpenSSL 0.9.8 is deprecated, update to 1.0.2h
Browse files Browse the repository at this point in the history
  • Loading branch information
dreness committed Jul 7, 2016
1 parent c428bba commit c7462de
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions bin/_build.sh
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -168,6 +168,13 @@ init_build () {
use_openssl="false" use_openssl="false"
;; ;;
esac; esac;
else
case "$(uname -s)" in
Darwin)
# Needed to build OpenSSL 64-bit on OS X
export KERNEL_BITS=64
;;
esac
fi; fi;
conditional_set requirements "${default_requirements}" conditional_set requirements "${default_requirements}"


Expand Down Expand Up @@ -490,7 +497,7 @@ c_dependencies () {
if [ ${use_openssl} == "true" ]; then if [ ${use_openssl} == "true" ]; then
ruler; ruler;


local min_ssl_version="9470095"; # OpenSSL 0.9.8zf local min_ssl_version="268443791"; # OpenSSL 1.0.2h


local ssl_version="$(c_macro openssl/ssl.h OPENSSL_VERSION_NUMBER)"; local ssl_version="$(c_macro openssl/ssl.h OPENSSL_VERSION_NUMBER)";
if [ -z "${ssl_version}" ]; then ssl_version="0x0"; fi; if [ -z "${ssl_version}" ]; then ssl_version="0x0"; fi;
Expand All @@ -499,13 +506,13 @@ c_dependencies () {
if [ "${ssl_version}" -ge "${min_ssl_version}" ]; then if [ "${ssl_version}" -ge "${min_ssl_version}" ]; then
using_system "OpenSSL"; using_system "OpenSSL";
else else
local v="0.9.8zh"; local v="1.0.2h";
local n="openssl"; local n="openssl";
local p="${n}-${v}"; local p="${n}-${v}";


# use 'config' instead of 'configure'; 'make' instead of 'jmake'. # use 'config' instead of 'configure'; 'make' instead of 'jmake'.
# also pass 'shared' to config to build shared libs. # also pass 'shared' to config to build shared libs.
c_dependency -c "config" -s "3ff71636bea85a99f4d76a10d119c09bda0421e3" \ c_dependency -c "config" -s "577585f5f5d299c44dd3c993d3c0ac7a219e4949" \
-p "make depend" -b "make" \ -p "make depend" -b "make" \
"openssl" "${p}" \ "openssl" "${p}" \
"http://www.openssl.org/source/${p}.tar.gz" "shared"; "http://www.openssl.org/source/${p}.tar.gz" "shared";
Expand Down

0 comments on commit c7462de

Please sign in to comment.