[openssl/openssl] 31b916: OPENSSL_init_crypto load config into initial globa...
Ingo Franzki
noreply at github.com
Thu Aug 31 15:09:22 UTC 2023
Branch: refs/heads/openssl-3.1
Home: https://github.com/openssl/openssl
Commit: 31b9166ff41a252f34735c468e2b4700e945e219
https://github.com/openssl/openssl/commit/31b9166ff41a252f34735c468e2b4700e945e219
Author: Ingo Franzki <ifranzki at linux.ibm.com>
Date: 2023-08-31 (Thu, 31 Aug 2023)
Changed paths:
M crypto/conf/conf_sap.c
Log Message:
-----------
OPENSSL_init_crypto load config into initial global default library context
OPENSSL_init_crypto() with OPENSSL_INIT_LOAD_CONFIG must load the configuration
into the initial global default library context, not the currently set default
library context.
OPENSSL_init_crypto() with OPENSSL_INIT_LOAD_CONFIG may be called within other
OpenSSL API functions, e.g. from within EVP_PKEY_CTX_new_xxx() when initializing
a pkey context, to perform implicit initialization, if it has not been
initialized yet. This implicit initialization may happen at a time when an
application has already create its own library context and made it the default
library context. So loading the config into the current default library context
would load it into the applications library context.
Signed-off-by: Ingo Franzki <ifranzki at linux.ibm.com>
Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
Reviewed-by: Matt Caswell <matt at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21897)
(cherry picked from commit ecb6cdf02a302af18fe4bc20097a9ea3177f897c)
More information about the openssl-commits
mailing list