fipsinstall: 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/fipsinstall.c

index 4defa0ab8151125744a15a5b084c6241b385db4a..d0efdf7643bd3252e90c32ae6285f0524b765a71 100644 (file)
@@ -431,7 +431,7 @@ opthelp:
     if (read_buffer == NULL)
         goto end;
 
-    mac = EVP_MAC_fetch(NULL, mac_name, NULL);
+    mac = EVP_MAC_fetch(app_get0_libctx(), mac_name, app_get0_propq());
     if (mac == NULL) {
         BIO_printf(bio_err, "Unable to get MAC of type %s\n", mac_name);
         goto end;