diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-02-28 17:04:39 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-02-28 17:04:39 +0000 |
commit | 0340ebb3004c4c093389677f9bc48d26a31a23f6 (patch) | |
tree | 447f7b877fbf5a5e58e8023400f2725653564596 /usr.bin/openssl | |
parent | ee72c622e16ceced1acae86b72dd9eccf1f84f7f (diff) |
Expand only ever user of PBEPARAM_free() outside of libcrypto
Diffstat (limited to 'usr.bin/openssl')
-rw-r--r-- | usr.bin/openssl/pkcs12.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/openssl/pkcs12.c b/usr.bin/openssl/pkcs12.c index c6f0476fc6b..c8706904f1a 100644 --- a/usr.bin/openssl/pkcs12.c +++ b/usr.bin/openssl/pkcs12.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pkcs12.c,v 1.26 2023/11/19 09:29:11 tb Exp $ */ +/* $OpenBSD: pkcs12.c,v 1.27 2024/02/28 17:04:38 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project. */ @@ -70,6 +70,7 @@ #include <openssl/err.h> #include <openssl/pem.h> #include <openssl/pkcs12.h> +#include <openssl/x509.h> #define NOKEYS 0x1 #define NOCERTS 0x2 @@ -1023,7 +1024,7 @@ alg_print(BIO *x, const X509_ALGOR *alg) BIO_printf(bio_err, "%s, Iteration %ld\n", OBJ_nid2ln(OBJ_obj2nid(aobj)), ASN1_INTEGER_get(pbe->iter)); - PBEPARAM_free(pbe); + ASN1_item_free((ASN1_VALUE *)pbe, &PBEPARAM_it); return 1; } |