Hello,

The -evp option in the openssl speed command doesn't work in the
current master due to the check on line 952:
if (argc == 0) should be if (argc == 0 && !doit(D_EVP))

the reason is on line 856: argc = opt_num_rest(); which sets argc to 0
because the argument of -evp <insert cipher/hash> doesn't count as an
argument in the opt_num_rest() function.

See the attached patch

--
Kurt Cancemi
https://www.x64architecture.com

>From db7179922b901f9ad935bf6324e108656f0c33b5 Mon Sep 17 00:00:00 2001
From: Kurt Cancemi <k...@x64architecture.com>
Date: Fri, 26 Jun 2015 02:13:45 -0400
Subject: [PATCH] Fix -evp option in openssl speed command

---
 apps/speed.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/speed.c b/apps/speed.c
index 1a3027b..6e87cd6 100644
--- a/apps/speed.c
+++ b/apps/speed.c
@@ -949,7 +949,7 @@ int speed_main(int argc, char **argv)
 #endif
 
     /* No parameters; turn on everything. */
-    if (argc == 0) {
+    if (argc == 0 && !doit(D_EVP)) {
         for (i = 0; i < ALGOR_NUM; i++)
             if (i != D_EVP)
                 doit[i] = 1;
-- 
1.9.1

_______________________________________________
openssl-bugs-mod mailing list
openssl-bugs-...@openssl.org
https://mta.openssl.org/mailman/listinfo/openssl-bugs-mod
_______________________________________________
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev

Reply via email to