]> 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:11 +0000 (11:20 +0100)
commit61217d142ce7bd3d5ed089fd7610f77ac0867421
treed7a8f4f1b125b04715df179268ce32a298341adf
parent61db4145df39a3818b98ffca040712970fcb2d86
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