From ad4a4fd2a6bb58c83e2708c4fab3e45200d4552d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jeremy=20Lain=C3=A9?= Date: Wed, 10 Jan 2024 23:06:27 +0100 Subject: [PATCH] Update OpenSSL to the latest stable version (3.2.0) We also add the following flags to the build: - no-apps to avoid building the openssl CLI - no-dso to avoid building support for dynamic engines --- scripts/build-openssl.bat | 4 ++-- scripts/build-openssl.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/build-openssl.bat b/scripts/build-openssl.bat index 75ff4a6..fbca994 100644 --- a/scripts/build-openssl.bat +++ b/scripts/build-openssl.bat @@ -21,11 +21,11 @@ call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Buil SET PATH=%PATH%;C:\Program Files\NASM mkdir openssl -curl -L https://www.openssl.org/source/openssl-3.1.4.tar.gz -o openssl.tar.gz +curl -L https://www.openssl.org/source/openssl-3.2.0.tar.gz -o openssl.tar.gz tar xzf openssl.tar.gz -C openssl --strip-components 1 cd openssl -perl Configure no-comp no-shared no-tests %OPENSSL_CONFIG% +perl Configure no-apps no-comp no-dso no-shared no-tests %OPENSSL_CONFIG% nmake mkdir %destdir% diff --git a/scripts/build-openssl.py b/scripts/build-openssl.py index fffafeb..f5b1efd 100644 --- a/scripts/build-openssl.py +++ b/scripts/build-openssl.py @@ -80,9 +80,9 @@ def run(cmd, *, env=None): os.chdir(build_dir) # build openssl - extract("openssl", "https://www.openssl.org/source/openssl-3.1.4.tar.gz") + extract("openssl", "https://www.openssl.org/source/openssl-3.2.0.tar.gz") os.chdir("openssl") - run(["./config"] + configure_args + ["no-comp", "no-shared", "no-tests"]) + run(["./config"] + configure_args + ["no-apps", "no-comp", "no-dso", "no-shared", "no-tests"]) run(["make"]) run(["make", "install_sw", "INSTALLTOP=" + dest_dir, "LIBDIR=lib"])