summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2022-11-09 23:28:08 +0000
committertb <>2022-11-09 23:28:08 +0000
commitdec0c3933cec63357ef140331f78ad4a374318a1 (patch)
tree4d0798cab3c077050c738e720c854ea55c5bd7d9
parenta3abe2affa9190149eb25669337580c92e56f32c (diff)
downloadopenbsd-dec0c3933cec63357ef140331f78ad4a374318a1.tar.gz
openbsd-dec0c3933cec63357ef140331f78ad4a374318a1.tar.bz2
openbsd-dec0c3933cec63357ef140331f78ad4a374318a1.zip
Remove prime_t remnant and link bn_primes test statically
-rw-r--r--src/regress/lib/libcrypto/bn/general/Makefile3
-rw-r--r--src/regress/lib/libcrypto/bn/general/bn_primes.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/bn/general/Makefile b/src/regress/lib/libcrypto/bn/general/Makefile
index ab642e0769..b9282a1126 100644
--- a/src/regress/lib/libcrypto/bn/general/Makefile
+++ b/src/regress/lib/libcrypto/bn/general/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.14 2022/07/25 20:48:57 tb Exp $ 1# $OpenBSD: Makefile,v 1.15 2022/11/09 23:28:08 tb Exp $
2 2
3.include "../../Makefile.inc" 3.include "../../Makefile.inc"
4 4
@@ -34,6 +34,7 @@ REGRESS_TARGETS += run-bn_mod_sqrt
34run-bn_mod_sqrt: bn_mod_sqrt 34run-bn_mod_sqrt: bn_mod_sqrt
35 ./bn_mod_sqrt 35 ./bn_mod_sqrt
36 36
37LDADD_bn_primes = ${CRYPTO_INT}
37REGRESS_TARGETS += run-bn_primes 38REGRESS_TARGETS += run-bn_primes
38run-bn_primes: bn_primes 39run-bn_primes: bn_primes
39 ./bn_primes 40 ./bn_primes
diff --git a/src/regress/lib/libcrypto/bn/general/bn_primes.c b/src/regress/lib/libcrypto/bn/general/bn_primes.c
index f9d358f709..c61cdb34b8 100644
--- a/src/regress/lib/libcrypto/bn/general/bn_primes.c
+++ b/src/regress/lib/libcrypto/bn/general/bn_primes.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_primes.c,v 1.1 2022/06/18 19:53:19 tb Exp $ */ 1/* $OpenBSD: bn_primes.c,v 1.2 2022/11/09 23:28:08 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> 3 * Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
4 * 4 *
@@ -24,7 +24,7 @@ test_bn_is_prime_fasttest(int do_trial_division)
24{ 24{
25 BIGNUM *n = NULL; 25 BIGNUM *n = NULL;
26 char *descr = NULL; 26 char *descr = NULL;
27 prime_t i, j, max; 27 uint16_t i, j, max;
28 int is_prime, ret; 28 int is_prime, ret;
29 int failed = 1; 29 int failed = 1;
30 30