Skip to content

Commit

Permalink
Update OpenSSL to the latest stable version (3.2.0)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jlaine committed Jan 10, 2024
1 parent d0b94b3 commit ad4a4fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/build-openssl.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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%
Expand Down
4 changes: 2 additions & 2 deletions scripts/build-openssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

Expand Down

0 comments on commit ad4a4fd

Please sign in to comment.