[openssl-commits] [openssl] master update

Rich Salz rsalz at openssl.org
Tue Sep 20 19:48:12 UTC 2016


The branch master has been updated
       via  13a461831ab85ec9f55806ebf2df5ffb7f3f357a (commit)
      from  a19228b7f4fc6fcb49713455b3caedbc24fb0b01 (commit)


- Log -----------------------------------------------------------------
commit 13a461831ab85ec9f55806ebf2df5ffb7f3f357a
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>

-----------------------------------------------------------------------

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