diff options
author | Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> | 2019-05-02 14:49:34 +0200 |
---|---|---|
committer | Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> | 2019-05-02 23:05:38 +0200 |
commit | 42151b8edb112d23d81f6e0d6606d98797771b4b (patch) | |
tree | 31164ae57a1fc88d0a008b14b2cada6a9efcdf79 /apps | |
parent | 31fc48ddc30c627416edaa62ec1448e66ef92908 (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)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/cms.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/cms.c b/apps/cms.c index b2037b4df2..2863a92eee 100644 --- a/apps/cms.c +++ b/apps/cms.c @@ -640,6 +640,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; } |