openssl/crypto
Ingo Franzki ecb6cdf02a 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@linux.ibm.com>

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21897)
2023-08-31 17:06:51 +02:00
..
aes Fixed incorrect usage of vshuf.b instruction 2023-08-01 19:42:58 +02:00
aria
asn1 asn1: add ASN1_STRING_set() check result 2023-08-04 13:29:17 -04:00
async
bf
bio Correct the fixed size handling for dgram_pair and dgram_mem 2023-08-30 11:43:34 +01:00
bn Don't call ossl_assert on the result of bn_wexpand 2023-08-14 14:32:06 +01:00
buffer
camellia
cast
chacha Fix ChaCha assembly code on 32-bit HPUX itanium systems 2023-08-09 12:22:20 +02:00
cmac Update CMAC test cases. 2023-06-12 08:36:08 +02:00
cmp cmp_genm.c: Remove superfluous store_ctx != 0 check 2023-08-18 15:06:18 +02:00
cms Do not raise CMS_R_CONTENT_TYPE_NOT_ENVELOPED_DATA error in CMS_ContentInfo_free 2023-08-10 12:09:38 +02:00
comp bio: pass flags on BIO_ctrl to make flush retriable 2023-08-04 10:30:58 -04:00
conf OPENSSL_init_crypto load config into initial global default library context 2023-08-31 17:06:51 +02:00
crmf CMS, PKCS7, and CRMF: simplify use of EVP_PKEY_decrypt() by helper function 2023-05-30 22:02:10 +02:00
ct
des
dh DH_check(): Do not try checking q properties if it is obviously invalid 2023-07-27 09:48:22 -04:00
dsa fix memory allocation and reference counting issues 2023-07-05 08:34:00 +10:00
dso dso: update to structure based atomics 2023-07-01 21:18:25 +10:00
ec ecp_sm2p256-armv8.pl: Copy the argument handling from ecp_nistz256-armv8.pl 2023-08-31 09:40:51 +02:00
encode_decode Fix a leak in ossl_encode_ctx_setup_for_pkey 2023-08-23 16:01:30 +01:00
engine no_autoload: make the no-autoload-config option work again. 2023-08-04 11:57:27 +10:00
err make update 2023-08-30 08:28:22 +01:00
ess
evp Allow RSA-PSS also in EVP_PKEY_assign() and EVP_PKEY_can_sign() 2023-08-24 18:07:08 +02:00
ffc
hmac
hpke Fix typos found by codespell 2023-06-15 10:11:46 +10:00
http OSSL_HTTP_{REQ_CTX_set_request_line(),_set1_request()}: backward compat w.r.t. path parameter 2023-08-10 17:29:07 +02:00
idea
kdf
lhash
md2
md4
md5
mdc2
modes riscv: Clarify dual-licensing wording for GCM and AES 2023-07-06 12:53:27 +10:00
objects no_autoload: make the no-autoload-config option work again. 2023-08-04 11:57:27 +10:00
ocsp Add two missing entries to the OCSP CRLReason table 2023-08-18 10:05:39 +02:00
pem The PEM_read_bio_Parameters() function should not ask for a password 2023-08-01 20:08:28 +02:00
perlasm Fix handling of the "0:" label in arm-xlate.pl 2023-08-08 22:35:53 +02:00
pkcs7 CMS, PKCS7, and CRMF: simplify use of EVP_PKEY_decrypt() by helper function 2023-05-30 22:02:10 +02:00
pkcs12 Fix typos found by codespell 2023-06-15 10:11:46 +10:00
poly1305 Fix typos found by codespell 2023-07-18 18:54:45 +10:00
property no_autoload: make the no-autoload-config option work again. 2023-08-04 11:57:27 +10:00
rand rand_lib: RAND_poll: Reseed in non-"no-deprecated" builds. 2023-06-14 09:03:14 +10:00
rc2
rc4 Fix typos found by codespell 2023-06-15 10:11:46 +10:00
rc5
ripemd
rsa Fix RSA OAEP set/get label for legacy engine 2023-07-17 08:15:06 +10:00
seed
sha Move Keccak rhotates tables to rodata 2023-07-14 11:15:45 +10:00
siphash
sm2 crypto/sm2/sm2_sign.c: Add BN_CTX_end 2023-06-13 13:37:33 +02:00
sm3 Fix arm64 asm code back compatible issue with gcc 4.9.4 2023-05-31 10:50:28 +10:00
sm4 Fix typos found by codespell 2023-06-15 10:11:46 +10:00
srp
stack
store store: update to structure based atomics 2023-07-01 21:18:25 +10:00
thread Fix no-thread-pool building 2023-07-06 12:55:21 +10:00
ts Changed the default value of the "ess_cert_id_alg" option 2023-08-25 15:05:51 +02:00
txt_db Coverity 1528487: Avoid assignment of unused value of i 2023-06-10 19:23:59 -04:00
ui Fix stack corruption in ui_read 2023-05-17 12:07:02 +02:00
whrlpool Fix typos found by codespell 2023-07-18 18:54:45 +10:00
x509 ossl_x509_store_ctx_get_by_subject(): Check return value of X509_STORE_lock() 2023-08-18 15:06:18 +02:00
alphacpuid.pl
arm64cpuid.pl
arm_arch.h Update with ARMV8_HAVE_SHA3_AND_WORTH_USING 2023-07-21 10:19:19 +10:00
armcap.c Update with ARMV8_HAVE_SHA3_AND_WORTH_USING 2023-07-21 10:19:19 +10:00
armv4cpuid.pl
asn1_dsa.c
bsearch.c
build.info params: provide a faster TRIE based param lookup. 2023-06-02 15:13:20 +10:00
c64xpluscpuid.pl
context.c Remove include/internal/decoder.h, as it's superfluous 2023-08-15 15:23:16 +02:00
core_algorithm.c
core_fetch.c
core_namemap.c return immediately if namemap is NULL 2023-06-18 16:55:09 +10:00
cpt_err.c
cpuid.c
cryptlib.c
ctype.c
cversion.c
der_writer.c
deterministic_nonce.c Fix typos found by codespell 2023-06-15 10:11:46 +10:00
dllmain.c
ebcdic.c
ex_data.c When we're just reading EX_CALLBACK data just get a read lock 2023-05-30 17:26:02 +01:00
getenv.c
ia64cpuid.S
info.c
init.c Fix an init-deadlock in OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS) 2023-08-10 16:11:30 +02:00
initthread.c
loongarch64cpuid.pl
loongarch_arch.h Resolve assembler complains when including loongarch_arch.h 2023-08-28 09:59:34 +02:00
loongarchcap.c vpaes: LoongArch: Use getauxval(AT_HWCAP) for LSX detection 2023-07-28 12:39:41 +10:00
LPdir_nyi.c
LPdir_unix.c Cast the argument to unsigned char when calling isdigit() 2023-06-06 15:48:46 +02:00
LPdir_vms.c
LPdir_win32.c
LPdir_win.c
LPdir_wince.c
mem_clr.c
mem_sec.c Introduce [HAVE_/NO_]MADVISE defines 2023-06-12 07:56:03 +02:00
mem.c
mips_arch.h
o_dir.c
o_fopen.c
o_init.c
o_str.c
o_time.c
packet.c
param_build_set.c
param_build.c Fix typos found by codespell 2023-06-15 10:11:46 +10:00
params_dup.c
params_from_text.c
params_idx.c.in params: provide a faster TRIE based param lookup. 2023-06-02 15:13:20 +10:00
params.c crypto/params: drop float for UEFI 2023-05-22 07:45:10 +01:00
pariscid.pl
passphrase.c
ppccap.c
ppccpuid.pl
provider_child.c OSSL_PROVIDER_load_ex 2023-08-30 21:55:47 +02:00
provider_conf.c OSSL_PROVIDER_load_ex 2023-08-30 21:55:47 +02:00
provider_core.c OSSL_PROVIDER_load_ex 2023-08-30 21:55:47 +02:00
provider_local.h
provider_predefined.c
provider.c OSSL_PROVIDER_load_ex 2023-08-30 21:55:47 +02:00
punycode.c
quic_vlint.c
README-sparse_array.md
riscv32cpuid.pl
riscv64cpuid.pl
riscvcap.c
s390x_arch.h
s390xcap.c s390xcap.c: Avoid copying structure on initialization 2023-06-28 08:31:07 +10:00
s390xcpuid.pl
self_test_core.c
sleep.c OSSL_sleep(): Calling sleep() function if sleepTime > 1sec 2023-05-30 21:10:03 +02:00
sparccpuid.S
sparcv9cap.c
sparse_array.c
threads_lib.c
threads_none.c QUIC: Fix bugs where threading is disabled 2023-05-24 10:34:54 +01:00
threads_pthread.c issue-21718: remove setting of PTHREAD_MUTEX_NORMAL 2023-08-17 08:02:15 +01:00
threads_win.c Add note about Windows LONG 2023-05-24 10:34:55 +01:00
time.c
trace.c
uid.c Add more fixes for WebAssembly/WASI build 2023-07-12 10:50:09 +10:00
vms_rms.h
x86_64cpuid.pl
x86cpuid.pl