diff options
author | Dongsun Lee <ds73.lee@samsung.com> | 2016-09-26 09:05:54 +0900 |
---|---|---|
committer | Dongsun Lee <ds73.lee@samsung.com> | 2016-09-26 09:07:09 +0900 |
commit | 00fa4cfde370fcd893adae30169ec00d51381581 (patch) | |
tree | 42cdc10ba172d1097547dff153d25e95201d8cd9 /apps/dgst.c | |
parent | e541e124ee3ee2657cc49f107c74f6882029f74c (diff) | |
download | openssl-00fa4cfde370fcd893adae30169ec00d51381581.tar.gz openssl-00fa4cfde370fcd893adae30169ec00d51381581.tar.bz2 openssl-00fa4cfde370fcd893adae30169ec00d51381581.zip |
Imported Upstream version 1.0.2iupstream/1.0.2i
Change-Id: Ie36b37cac23a47c82793df31244ade44f98093fa
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
Diffstat (limited to 'apps/dgst.c')
-rw-r--r-- | apps/dgst.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/dgst.c b/apps/dgst.c index 95e5fa3..26afcd7 100644 --- a/apps/dgst.c +++ b/apps/dgst.c @@ -243,6 +243,11 @@ int MAIN(int argc, char **argv) argv++; } + if (keyfile != NULL && argc > 1) { + BIO_printf(bio_err, "Can only sign or verify one file\n"); + goto end; + } + if (do_verify && !sigfile) { BIO_printf(bio_err, "No signature to verify: use the -signature option\n"); |