]> 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:20:22 +0000 (11:20 +0100)
commited7651c93336049c2744327478f4d60bf9c21886
tree79c5f0e190b521706981fd8ae21706801877f6bc
parent0f4dfff7840950f15f2339609ca180072a4ebe32
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)

(cherry picked from commit dfce0d7418d6d5b54d74fa80fc50392f00270c53)
crypto/context.c
crypto/rand/rand_lib.c