]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
kdf: use the app's libctx and property query when searching for algorithms
authorPauli <pauli@openssl.org>
Thu, 10 Jun 2021 00:26:43 +0000 (10:26 +1000)
committerPauli <pauli@openssl.org>
Tue, 15 Jun 2021 08:26:47 +0000 (18:26 +1000)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15687)

apps/kdf.c

index c4892ed20ec44b2e57f3902b6a76e7c06d054983..89ee1f69c7669ff85263e0bd1a7f299103008ee9 100644 (file)
@@ -138,7 +138,8 @@ opthelp:
     if (argc != 1)
         goto opthelp;
 
-    if ((kdf = EVP_KDF_fetch(NULL, argv[0], NULL)) == NULL) {
+    if ((kdf = EVP_KDF_fetch(app_get0_libctx(), argv[0],
+                             app_get0_propq())) == NULL) {
         BIO_printf(bio_err, "Invalid KDF name %s\n", argv[0]);
         goto opthelp;
     }