]> git.ipfire.org Git - thirdparty/openssl.git/commit
Return NULL from ossl_lib_ctx_get_concrete() when it is uninitialized
authorFrederik Wedel-Heinen <frederik.wedel-heinen@dencrypt.dk>
Sun, 5 Jan 2025 19:42:51 +0000 (20:42 +0100)
committerTomas Mraz <tomas@openssl.org>
Wed, 8 Jan 2025 10:18:13 +0000 (11:18 +0100)
commitdfce0d7418d6d5b54d74fa80fc50392f00270c53
treed61d1941ca5ae0126f7a1d4c4b6dac34d2f357e5
parentbbd181166391e4e1fd0a647f43b8b239609298ea
Return NULL from ossl_lib_ctx_get_concrete() when it is uninitialized

When default_context_inited is set to false we return NULL instead of
the global default context.

Fixes #25442

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26319)
crypto/context.c
crypto/rand/rand_lib.c