summaryrefslogtreecommitdiffstats
path: root/crypto/openssl/apps/dgst.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssl/apps/dgst.c')
-rw-r--r--crypto/openssl/apps/dgst.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/openssl/apps/dgst.c b/crypto/openssl/apps/dgst.c
index 95e5fa3..26afcd7 100644
--- a/crypto/openssl/apps/dgst.c
+++ b/crypto/openssl/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");
OpenPOWER on IntegriCloud