diff options
author | Neil Horman <nhorman@openssl.org> | 2024-06-28 19:28:55 +0200 |
---|---|---|
committer | Neil Horman <nhorman@openssl.org> | 2024-07-09 10:01:44 +0200 |
commit | a8f99f98d601efdc212d958a79af78bbbb0f12e0 (patch) | |
tree | 4dcd4ac5832e7c40e2e19867b1ca2ca64a4d4b7e /.github/workflows/windows.yml | |
parent | Adjust ci to only use major.minor when setting reg keys (diff) | |
download | openssl-a8f99f98d601efdc212d958a79af78bbbb0f12e0.tar.xz openssl-a8f99f98d601efdc212d958a79af78bbbb0f12e0.zip |
Avoid chicken and egg problem with reg setting
Because openssl with -DOSSL_WINCTX no longer falls back to build time
defines, we have a chicken and egg problem. CI needs to query openssl
for its version string so registry keys can be set properly, but openssl
version refuses to run because no configuration file can be found
So we work around it by, for the purposes of setting the registry keys,
we set OPENSSL_CONF to a know config file, so that openssl version runs
properly.
Once the version is extracted, we can set the registry keys, and openssl
will function properly without OPENSSL_CONF set
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24450)
Diffstat (limited to '.github/workflows/windows.yml')
-rw-r--r-- | .github/workflows/windows.yml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 110ac4bed9..a0cb656e36 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -54,6 +54,7 @@ jobs: - name: Gather openssl version info working-directory: _build run: | + $Env:OPENSSL_CONF="apps\openssl.cnf" apps/openssl.exe version -v apps/openssl.exe version -v | awk '{print $2}' apps/openssl.exe version -v | awk '{print $2}' | sed -e's/\([0-9]\+\.[0-9]\+\)\(\.[0-9]\+\)\(-*.*$\)/\1/' |