Use defaults FIPSKEY if not given on command line
authorRich Salz <rsalz@akamai.com>
Tue, 23 Jun 2020 00:49:51 +0000 (20:49 -0400)
committerRichard Levitte <levitte@openssl.org>
Wed, 15 Jul 2020 21:17:29 +0000 (23:17 +0200)
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12311)

apps/fipsinstall.c

index e76e615bc6da5c8c374db4e54a1557473979de91..fde82ef8a7f7bd064aa3f5d0c78fc0db42645831 100644 (file)
@@ -357,6 +357,7 @@ opthelp:
     /* Use the default FIPS HMAC digest and key if not specified. */
     if (!gotdigest && !sk_OPENSSL_STRING_push(opts, "digest:SHA256"))
         goto end;
+    /* Use the default FIPS HMAC key if not specified. */
     if (!gotkey && !sk_OPENSSL_STRING_push(opts, "hexkey:" FIPS_KEY_STRING))
         goto end;