diff options
author | tb <> | 2022-12-06 18:23:29 +0000 |
---|---|---|
committer | tb <> | 2022-12-06 18:23:29 +0000 |
commit | 25379fab64d0e4e97e49ce782d1f7239af8a6192 (patch) | |
tree | 3d7a75b4695a187d73d96688171cae5e85928f1f /src/regress/lib/libcrypto/bn/bn_test.c | |
parent | 63e1e004d5a60eea51f7c1fcc42d54aca4f605b9 (diff) | |
download | openbsd-25379fab64d0e4e97e49ce782d1f7239af8a6192.tar.gz openbsd-25379fab64d0e4e97e49ce782d1f7239af8a6192.tar.bz2 openbsd-25379fab64d0e4e97e49ce782d1f7239af8a6192.zip |
Add a few missing headers and drop a few unused ones
In bn_test.c include bn_local.h instead of using copy-pasted prototypes.
Diffstat (limited to 'src/regress/lib/libcrypto/bn/bn_test.c')
-rw-r--r-- | src/regress/lib/libcrypto/bn/bn_test.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_test.c b/src/regress/lib/libcrypto/bn/bn_test.c index c1feddeda1..ed61f86f2e 100644 --- a/src/regress/lib/libcrypto/bn/bn_test.c +++ b/src/regress/lib/libcrypto/bn/bn_test.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn_test.c,v 1.1 2022/12/01 20:50:10 tb Exp $ */ | 1 | /* $OpenBSD: bn_test.c,v 1.2 2022/12/06 18:23:29 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -81,19 +81,9 @@ | |||
81 | 81 | ||
82 | #include <openssl/bio.h> | 82 | #include <openssl/bio.h> |
83 | #include <openssl/bn.h> | 83 | #include <openssl/bn.h> |
84 | #include <openssl/x509.h> | ||
85 | #include <openssl/err.h> | 84 | #include <openssl/err.h> |
86 | 85 | ||
87 | int BN_mod_exp_ct(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, | 86 | #include "bn_local.h" |
88 | const BIGNUM *m, BN_CTX *ctx); | ||
89 | int BN_mod_exp_nonct(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, | ||
90 | const BIGNUM *m, BN_CTX *ctx); | ||
91 | int BN_mod_exp_mont_ct(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, | ||
92 | const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); | ||
93 | int BN_mod_exp_mont_nonct(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, | ||
94 | const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); | ||
95 | |||
96 | int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom); | ||
97 | 87 | ||
98 | const int num0 = 100; /* number of tests */ | 88 | const int num0 = 100; /* number of tests */ |
99 | const int num1 = 50; /* additional tests for some functions */ | 89 | const int num1 = 50; /* additional tests for some functions */ |