Skip to content

Commit

Permalink
Update OpenSSL to the latest stable version (3.1.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaine committed Nov 4, 2023
1 parent b100815 commit 7f4324a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/build-openssl.bat
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliar
SET PATH=%PATH%;C:\Program Files\NASM

mkdir openssl
curl -L https://www.openssl.org/source/openssl-1.1.1m.tar.gz -o openssl.tar.gz
curl -L https://www.openssl.org/source/openssl-3.1.4.tar.gz -o openssl.tar.gz
tar xzf openssl.tar.gz -C openssl --strip-components 1
cd openssl

Expand Down
11 changes: 6 additions & 5 deletions scripts/build-openssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@ def run(cmd, *, env=None):
)


configure_env = None
configure_args = []
output_dir = os.path.abspath("output")
if platform.system() == "Linux":
if platform.system() == "Linux" and os.environ.get("CIBUILDWHEEL") == "1":
output_dir = "/output"
run(["yum", "-y", "install", "perl-IPC-Cmd"])
elif platform.system() == "Darwin" and os.environ.get("ARCHFLAGS") == "-arch arm64":
configure_env = {"MACHINE": "arm64"}
configure_args = ["darwin64-arm64"]
output_tarball = os.path.join(output_dir, f"openssl-{get_platform()}.tar.gz")

for d in [build_dir, output_dir, source_dir]:
Expand All @@ -79,9 +80,9 @@ def run(cmd, *, env=None):
os.chdir(build_dir)

# build openssl
extract("openssl", "https://www.openssl.org/source/openssl-1.1.1m.tar.gz")
extract("openssl", "https://www.openssl.org/source/openssl-3.1.4.tar.gz")
os.chdir("openssl")
run(["./config", "no-comp", "no-shared", "no-tests"], env=configure_env)
run(["./config"] + configure_args + ["no-comp", "no-shared", "no-tests"])
run(["make", "-j"])
run(["make", "install_sw", "INSTALLTOP=" + dest_dir, "LIBDIR=lib"])

Expand Down

0 comments on commit 7f4324a

Please sign in to comment.