summaryrefslogtreecommitdiffstats
path: root/apps/fipsinstall.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2020-06-23 02:49:51 +0200
committerRichard Levitte <levitte@openssl.org>2020-07-15 23:17:29 +0200
commitd3b243d15bdbd4191a8c615f3654d00e1194d17c (patch)
tree45fe8017c1dded2813c8596f8fc3dc99a2d5f1c8 /apps/fipsinstall.c
parentAdd AES_CBC_CTS ciphers to providers (diff)
downloadopenssl-d3b243d15bdbd4191a8c615f3654d00e1194d17c.tar.xz
openssl-d3b243d15bdbd4191a8c615f3654d00e1194d17c.zip
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 '')
-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;