diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-11-09 23:28:09 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-11-09 23:28:09 +0000 |
commit | 4e4d2d4a171ede1fb08452b71b62e2031e357da3 (patch) | |
tree | 7104c32cc10f60e0837fe8433cfff3b3a69c5952 | |
parent | 1a278122a8ff7e0ac8483f6fb22436e8b90727ac (diff) |
Remove prime_t remnant and link bn_primes test statically
-rw-r--r-- | regress/lib/libcrypto/bn/general/Makefile | 3 | ||||
-rw-r--r-- | regress/lib/libcrypto/bn/general/bn_primes.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/regress/lib/libcrypto/bn/general/Makefile b/regress/lib/libcrypto/bn/general/Makefile index ab642e0769c..b9282a11268 100644 --- a/regress/lib/libcrypto/bn/general/Makefile +++ b/regress/lib/libcrypto/bn/general/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.14 2022/07/25 20:48:57 tb Exp $ +# $OpenBSD: Makefile,v 1.15 2022/11/09 23:28:08 tb Exp $ .include "../../Makefile.inc" @@ -34,6 +34,7 @@ REGRESS_TARGETS += run-bn_mod_sqrt run-bn_mod_sqrt: bn_mod_sqrt ./bn_mod_sqrt +LDADD_bn_primes = ${CRYPTO_INT} REGRESS_TARGETS += run-bn_primes run-bn_primes: bn_primes ./bn_primes diff --git a/regress/lib/libcrypto/bn/general/bn_primes.c b/regress/lib/libcrypto/bn/general/bn_primes.c index f9d358f7091..c61cdb34b83 100644 --- a/regress/lib/libcrypto/bn/general/bn_primes.c +++ b/regress/lib/libcrypto/bn/general/bn_primes.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_primes.c,v 1.1 2022/06/18 19:53:19 tb Exp $ */ +/* $OpenBSD: bn_primes.c,v 1.2 2022/11/09 23:28:08 tb Exp $ */ /* * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> * @@ -24,7 +24,7 @@ test_bn_is_prime_fasttest(int do_trial_division) { BIGNUM *n = NULL; char *descr = NULL; - prime_t i, j, max; + uint16_t i, j, max; int is_prime, ret; int failed = 1; |