summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2014-10-21 17:48:38 +0100
committerDr. Stephen Henson <steve@openssl.org>2014-10-29 22:23:31 +0000
commitecb9966e7c44896cf04ab577d4a5d27c9c5ddfac (patch)
treef23b9ba47aea26299a7e9e1232368d3403b43560 /apps
parentc381b63764dfb4d5a812cc51abaef423e73c49e5 (diff)
Fix WIN32 build by disabling bn* calls.
The trial division and probable prime with coprime tests are disabled on WIN32 builds because they use internal functions not exported from the WIN32 DLLs. Reviewed-by: Emilia Käsper <emilia@openssl.org>
Diffstat (limited to 'apps')
-rw-r--r--apps/speed.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/speed.c b/apps/speed.c
index 85786f1ca7..c99c7863c5 100644
--- a/apps/speed.c
+++ b/apps/speed.c
@@ -505,8 +505,9 @@ int MAIN(int argc, char **argv)
#define D_PRIME_TRIAL_DIVISION 0
#define D_PRIME_TRIAL_DIVISION_RETRY 1
#define D_PRIME_COPRIME 2
+#ifndef OPENSSL_SYS_WIN32
long prime_c[PRIME_NUM];
-
+#endif
#define R_DSA_512 0
#define R_DSA_1024 1
#define R_DSA_2048 2
@@ -2089,7 +2090,7 @@ int MAIN(int argc, char **argv)
print_result(D_EVP,j,count,d);
}
}
-
+#ifndef OPENSSL_SYS_WIN32
if (prime_doit[D_PRIME_TRIAL_DIVISION])
{
BIGNUM *rnd = BN_new();
@@ -2149,7 +2150,7 @@ int MAIN(int argc, char **argv)
BN_CTX_free(ctx);
BN_free(rnd);
}
-
+#endif
RAND_pseudo_bytes(buf,36);
#ifndef OPENSSL_NO_RSA
for (j=0; j<RSA_NUM; j++)