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>
Mon, 15 Nov 2021 14:22:41 +0000 (14:22 +0000)
commit4f224595162b7996bfb673457ea9d37f11478793
treeb24e15b7a7b9a005aff68edc617d240b7fa54a95
parentcf9a84a12dc4f3b314347e44f5c51b473a504926
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: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17018)
crypto/property/property_local.h
crypto/property/property_parse.c
crypto/property/property_query.c