Restore previous behaviour of only running one algorithm when -evp alg is used.
authorTim Hudson <tjh@openssl.org>
Mon, 17 Aug 2015 12:20:06 +0000 (22:20 +1000)
committerTim Hudson <tjh@openssl.org>
Mon, 17 Aug 2015 12:20:06 +0000 (22:20 +1000)
Submitted by: Eric Young <eay@pobox.com>
Reviewed-by: Ben Laurie <ben@openssl.org>
apps/speed.c

index 49efa7b..b4722f1 100644 (file)
@@ -944,7 +944,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;