[openssl-commits] [openssl] OpenSSL_1_1_0-stable update
Rich Salz
rsalz at openssl.org
Tue Sep 20 19:48:29 UTC 2016
The branch OpenSSL_1_1_0-stable has been updated
via d6637ce17ec5b811ea06543f3b584d25bfdeaaa3 (commit)
from e5cb5dbd3cc55514bb1e59a63dc8cb49221ec506 (commit)
- Log -----------------------------------------------------------------
commit d6637ce17ec5b811ea06543f3b584d25bfdeaaa3
Author: Rich Salz <rsalz at openssl.org>
Date: Fri Sep 2 17:34:31 2016 -0400
RT3669: dgst can only sign/verify one file.
Check arg count and print an error message.
Reviewed-by: Richard Levitte <levitte at openssl.org>
(cherry picked from commit 13a461831ab85ec9f55806ebf2df5ffb7f3f357a)
-----------------------------------------------------------------------
Summary of changes:
apps/dgst.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/apps/dgst.c b/apps/dgst.c
index e438b7c..b10b93e 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,
More information about the openssl-commits
mailing list