Fix conditional compile logic in speed.c
authorMatt Caswell <matt@openssl.org>
Wed, 6 Apr 2016 10:17:44 +0000 (11:17 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 13 Apr 2016 07:52:33 +0000 (08:52 +0100)
The conditional compile logic wasn't quite right in speed.c for when
both OPENSSL_NO_DSA and OPENSSL_NO_EC are defined.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
apps/speed.c

index b3f477e1758da77c1e2db899817059873a480b2d..68d6f0f58a382ac616a7c83d3cc471cbf3e8cfea 100644 (file)
@@ -310,7 +310,7 @@ static double ecdsa_results[EC_NUM][2];
 static double ecdh_results[EC_NUM][1];
 #endif
 
-#if defined(OPENSSL_NO_DSA) && !defined(OPENSSL_NO_EC)
+#if !defined(OPENSSL_NO_DSA) || !defined(OPENSSL_NO_EC)
 static const char rnd_seed[] =
     "string to make the random number generator think it has entropy";
 static int rnd_fake = 0;