From: Ben Laurie Date: Sat, 31 May 2014 17:20:03 +0000 (+0100) Subject: Add option to run all prime tests. X-Git-Tag: master-post-reformat~758^2~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5efa13ca7ebb78b5e69ae8a1786a296a26822129;p=oweals%2Fopenssl.git Add option to run all prime tests. --- diff --git a/apps/speed.c b/apps/speed.c index 00a7f1906f..08165651be 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -1018,6 +1018,11 @@ int MAIN(int argc, char **argv) prime_doit[D_PRIME_TRIAL_DIVISION_RETRY] = 1; else if (strcmp(*argv,"prime-coprime") == 0) prime_doit[D_PRIME_COPRIME] = 1; + else if (strcmp(*argv,"prime") == 0) + { + for (i=0; i < PRIME_NUM; i++) + prime_doit[i]=1; + } else { BIO_printf(bio_err,"Error: bad option or value\n");