]> 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:19:48 +0000 (11:19 +0100)
commitd220bf87220beb83d40d0f59b03f5f56beaf0084
tree5fbe1e0009da9339a97be1dae828579f2b5c8415
parent289334483c9d0d6bbbcf46a1419adbf5aea5d7e4
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