diff options
Diffstat (limited to 'apps/dgst.c')
-rw-r--r-- | apps/dgst.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/dgst.c b/apps/dgst.c index e438b7c8cc..b10b93e588 100644 --- a/apps/dgst.c +++ b/apps/dgst.c @@ -185,6 +185,10 @@ int dgst_main(int argc, char **argv) } argc = opt_num_rest(); argv = opt_rest(); + if (keyfile != NULL && argc > 1) { + BIO_printf(bio_err, "%s: Can only sign or verify one file.\n", prog); + goto end; + } if (do_verify && !sigfile) { BIO_printf(bio_err, |