]> git.ipfire.org Git - thirdparty/openssl.git/commit
Allow our *_gen_cleanup functions to tolerate a NULL ctx
authorMatt Caswell <matt@openssl.org>
Wed, 11 Jun 2025 08:50:16 +0000 (09:50 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 12 Jun 2025 11:01:42 +0000 (12:01 +0100)
commitfcc5df53697a63d0f153b0086054f509aad8e6bb
tree0aed2bb736555cf74b6e8a379e3ca8af4ab24d19
parent53e5071f3402ef0ae52f583154574ddd5aa8d3d7
Allow our *_gen_cleanup functions to tolerate a NULL ctx

Our *_gen_cleanup functions are essentially "free" functions. Our
free functions tolerate NULL being passed. We are being inconsistent with
our *_gen_cleanup functions. Some of them tolerate NULL and others do not.

We should consistently tolerate NULL.

See also #27795

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/27807)
providers/implementations/keymgmt/ecx_kmgmt.c
providers/implementations/keymgmt/mac_legacy_kmgmt.c
providers/implementations/keymgmt/ml_dsa_kmgmt.c.in
providers/implementations/keymgmt/ml_kem_kmgmt.c.in
providers/implementations/keymgmt/slh_dsa_kmgmt.c
providers/implementations/keymgmt/template_kmgmt.c