Don't write to the globals ossl_property_true and ossl_property_false
authorMatt Caswell <matt@openssl.org>
Fri, 5 Nov 2021 13:29:41 +0000 (13:29 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 12 Nov 2021 17:16:01 +0000 (17:16 +0000)
commit6de9214a5062e9d015c84cbbab681184e16fccaa
tree487bd063e65cdcdcb278f2f84484a82557ed7ccd
parent3641f04fb06e9679a67da113bab65e5f1bb5e9ba
Don't write to the globals ossl_property_true and ossl_property_false

These global variables were previously overwritten with the same value
every time we created a new OSSL_LIB_CTX. Instead we preinitialise them
with the correct values, and then confirm that settings for each
OSSL_LIB_CTX agree with the preinitialised values.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16980)
crypto/property/property_local.h
crypto/property/property_parse.c
crypto/property/property_query.c