]> git.ipfire.org Git - thirdparty/openssl.git/commit
Avoid chicken and egg problem with reg setting
authorNeil Horman <nhorman@openssl.org>
Fri, 28 Jun 2024 17:28:55 +0000 (13:28 -0400)
committerNeil Horman <nhorman@openssl.org>
Tue, 9 Jul 2024 08:01:44 +0000 (04:01 -0400)
commita8f99f98d601efdc212d958a79af78bbbb0f12e0
tree4dcd4ac5832e7c40e2e19867b1ca2ca64a4d4b7e
parentaa4fc5ea4a0da5f5f2c1fedf1f2727047d3a6eff
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)
.github/workflows/windows.yml
.github/workflows/windows_comp.yml