summaryrefslogtreecommitdiffstats
path: root/apps/pkcs12.c
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2021-06-10 11:27:44 +1000
committerPauli <pauli@openssl.org>2021-06-15 18:26:47 +1000
commit09495e4301ea5805b51c8128f99587de64a20b6c (patch)
treeb00c6e55e9e438c1d214e997f345309eb0646dcc /apps/pkcs12.c
parent4d574312dbeba89f3bf874aabbbd67a25b1cdf87 (diff)
pkcs12: use the app's libctx and property query when searching for algorithms
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15687)
Diffstat (limited to 'apps/pkcs12.c')
-rw-r--r--apps/pkcs12.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/pkcs12.c b/apps/pkcs12.c
index 90550b1f44..5df5cb78ce 100644
--- a/apps/pkcs12.c
+++ b/apps/pkcs12.c
@@ -763,7 +763,8 @@ int pkcs12_main(int argc, char **argv)
if (macver) {
EVP_KDF *pkcs12kdf;
- pkcs12kdf = EVP_KDF_fetch(NULL, "PKCS12KDF", NULL);
+ pkcs12kdf = EVP_KDF_fetch(app_get0_libctx(), "PKCS12KDF",
+ app_get0_propq());
if (pkcs12kdf == NULL) {
BIO_printf(bio_err, "Error verifying PKCS12 MAC; no PKCS12KDF support.\n");
BIO_printf(bio_err, "Use -nomacver if MAC verification is not required.\n");