summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2021-12-03 10:36:50 +0100
committerHugo Landau <hlandau@openssl.org>2022-07-01 08:41:13 +0200
commitbbaabd16e9fd090ecdc9688f3364c3dbc56512d4 (patch)
treecbb00ffd938ff8a71e1cb96540f73cabb1b2160d /apps
parentCMP: implement optional hashAlg field of certConf CMPv3 message (diff)
downloadopenssl-bbaabd16e9fd090ecdc9688f3364c3dbc56512d4.tar.xz
openssl-bbaabd16e9fd090ecdc9688f3364c3dbc56512d4.zip
apps/cmp.c: Fix glitch in -newkeypass warning and extend warnings for genm
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Hugo Landau <hlandau@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18657)
Diffstat (limited to 'apps')
-rw-r--r--apps/cmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/cmp.c b/apps/cmp.c
index 3cd0ffcbe2..a433f2b324 100644
--- a/apps/cmp.c
+++ b/apps/cmp.c
@@ -1583,11 +1583,11 @@ static int setup_request_ctx(OSSL_CMP_CTX *ctx, ENGINE *engine)
&& opt_oldcert == NULL && opt_cert == NULL)
CMP_warn("missing -recipient, -srvcert, -issuer, -oldcert or -cert; recipient will be set to \"NULL-DN\"");
- if (opt_cmd == CMP_P10CR || opt_cmd == CMP_RR) {
- const char *msg = "option is ignored for 'p10cr' and 'rr' commands";
+ if (opt_cmd == CMP_P10CR || opt_cmd == CMP_RR || opt_cmd == CMP_GENM) {
+ const char *msg = "option is ignored for 'p10cr', 'rr', and 'genm' commands";
if (opt_newkeypass != NULL)
- CMP_warn1("-newkeytype %s", msg);
+ CMP_warn1("-newkeypass %s", msg);
if (opt_newkey != NULL)
CMP_warn1("-newkey %s", msg);
if (opt_days != 0)