[openssl-commits] [openssl] OpenSSL_1_0_2-stable update

Richard Levitte levitte at openssl.org
Tue Sep 20 19:56:41 UTC 2016


The branch OpenSSL_1_0_2-stable has been updated
       via  a5e55f62975c0f978eb348763a1de0cd923f0d77 (commit)
      from  6180c0ff0c34b4029bd9d1bec519c8cbc6be4808 (commit)


- Log -----------------------------------------------------------------
commit a5e55f62975c0f978eb348763a1de0cd923f0d77
Author: Richard Levitte <levitte at openssl.org>
Date:   Tue Sep 20 21:41:58 2016 +0200

    RT4669: dgst can only sign/verify one file
    
    Check arg count and print an error message.
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>

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

Summary of changes:
 apps/dgst.c | 5 +++++
 1 file changed, 5 insertions(+)

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");


More information about the openssl-commits mailing list