openssl/crypto/pkcs12
Niels Dossche f822a48668 Fix potential memory leak in PKCS12_add_key_ex()
p8 is allocated using EVP_PKEY2PKCS8(), but when PKCS8_add_keyusage()
fails this memory is not freed. Fix this by adding a call to
PKCS8_PRIV_KEY_INFO_free().

Reviewed-by: Frederik Wedel-Heinen <fwh.openssl@gmail.com>
Reviewed-by: Hugo Landau <hlandau@devever.net>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25818)
2025-01-06 21:32:50 +01:00
..
build.info
p12_add.c Copyright year updates 2024-04-09 13:43:26 +02:00
p12_asn.c Copyright year updates 2023-09-07 09:59:15 +01:00
p12_attr.c
p12_crpt.c
p12_crt.c Fix potential memory leak in PKCS12_add_key_ex() 2025-01-06 21:32:50 +01:00
p12_decr.c Copyright year updates 2024-04-09 13:43:26 +02:00
p12_init.c Copyright year updates 2023-09-07 09:59:15 +01:00
p12_key.c Copyright year updates 2024-09-05 09:35:49 +02:00
p12_kiss.c Copyright year updates 2023-09-07 09:59:15 +01:00
p12_local.h Copyright year updates 2023-09-07 09:59:15 +01:00
p12_mutl.c Handle PBMAC1 with absent PBKDF2 PRF 2024-10-07 17:51:54 +02:00
p12_npas.c p12_npas.c: Remove call with unused return value 2024-06-28 09:12:03 +02:00
p12_p8d.c
p12_p8e.c
p12_sbag.c Copyright year updates 2023-09-07 09:59:15 +01:00
p12_utl.c Copyright year updates 2023-09-07 09:59:15 +01:00
pk12err.c Copyright year updates 2023-09-07 09:59:15 +01:00