From 405506271ba5deb237d248eb3cff2ca9cbb94110 Mon Sep 17 00:00:00 2001 From: Gordon Tisher Date: Sun, 22 Oct 2023 14:25:37 -0700 Subject: [PATCH] Update Windows LibreSSL to 3.7.3 (#101) This PR updates the LibreSSL library used on Windows to 3.7.3. Also removes a dependency on 7zip. Fixes #99 --- make.ps1 | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/make.ps1 b/make.ps1 index 838e787..1d90be1 100644 --- a/make.ps1 +++ b/make.ps1 @@ -145,7 +145,7 @@ function BuildTest function BuildLibs { - $libreSsl = "libressl-3.6.1" + $libreSsl = "libressl-3.7.3" if (-not (Test-Path "$rootDir/crypto.lib")) { @@ -155,11 +155,9 @@ function BuildLibs { $libreSslTgz = "$libreSsl.tar.gz" $libreSslTgzTgt = Join-Path -Path $libsDir -ChildPath $libreSslTgz - if (-not (Test-Path $libreSslTgzTgt)) { Invoke-WebRequest -TimeoutSec 300 -Uri "http://cdn.openbsd.org/pub/OpenBSD/LibreSSL/$libreSslTgz" -OutFile $libreSslTgzTgt } - 7z.exe x -y $libreSslTgzTgt "-o$libsDir" - if ($LastExitCode -ne 0) { throw "Error downloading and unzipping $libreSslTgz" } - 7z.exe x -y "$libsDir/$libreSsl.tar" "-o$libsDir" - if ($LastExitCode -ne 0) { throw "Error untarring $buildDir/$libreSsl.tar" } + if (-not (Test-Path $libreSslTgzTgt)) { Invoke-WebRequest -TimeoutSec 300 -Uri "https://cdn.openbsd.org/pub/OpenBSD/LibreSSL/$libreSslTgz" -OutFile $libreSslTgzTgt } + tar -xvzf "$libreSslTgzTgt" -C "$libsDir" + if ($LastExitCode -ne 0) { throw "Error downloading and extracting $libreSslTgz" } } # Write-Output "Building $libreSsl"