summaryrefslogtreecommitdiffstats
path: root/apps/cms.c
diff options
context:
space:
mode:
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>2019-05-02 14:49:34 +0200
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>2019-05-02 23:06:43 +0200
commit66790d762562aec139daa5ed321e380c687608e4 (patch)
tree0b541f59611d0e01a3ebda3a3f0d97f1623f6480 /apps/cms.c
parent49142bcb187d4d9fe8b41a813ff63ddf322600a3 (diff)
openssl cms: add error message if operation option is missing
If the `openssl cms` command is called without specifying an operation option, it replies with the following laconic error message: cms: Use -help for summary. This commit adds a helpful error message: No operation option (-encrypt|-decrypt|-sign|-verify|...) specified. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8861) (cherry picked from commit 42151b8edb112d23d81f6e0d6606d98797771b4b)
Diffstat (limited to 'apps/cms.c')
-rw-r--r--apps/cms.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/cms.c b/apps/cms.c
index e9d760c999..83cc3e55de 100644
--- a/apps/cms.c
+++ b/apps/cms.c
@@ -636,6 +636,7 @@ int cms_main(int argc, char **argv)
goto opthelp;
}
} else if (!operation) {
+ BIO_printf(bio_err, "No operation option (-encrypt|-decrypt|-sign|-verify|...) specified.\n");
goto opthelp;
}