summaryrefslogtreecommitdiffstats
path: root/apps/fipsinstall.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2020-06-22 20:49:51 -0400
committerRichard Levitte <levitte@openssl.org>2020-07-15 23:17:29 +0200
commitd3b243d15bdbd4191a8c615f3654d00e1194d17c (patch)
tree45fe8017c1dded2813c8596f8fc3dc99a2d5f1c8 /apps/fipsinstall.c
parent7cc355c2e4e081dca3c6c345a75a2ab16800c807 (diff)
Use defaults FIPSKEY if not given on command line
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)
Diffstat (limited to 'apps/fipsinstall.c')
-rw-r--r--apps/fipsinstall.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/fipsinstall.c b/apps/fipsinstall.c
index e76e615bc6..fde82ef8a7 100644
--- a/apps/fipsinstall.c
+++ b/apps/fipsinstall.c
@@ -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;