summaryrefslogtreecommitdiffstats
path: root/crypto/bn
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2021-02-04 19:25:44 +0100
committerTomas Mraz <tomas@openssl.org>2021-02-09 13:41:11 +0100
commit4d2a6159db1060ca38a3808cfa60bac46737c670 (patch)
tree5fb6c8b2361e07845de0b8921fa2c5d8b615f918 /crypto/bn
parent604b86d8d360e36fc2fc0d1611d05bf38699d297 (diff)
Deprecate BN_pseudo_rand() and BN_pseudo_rand_range()
The functions are obsolete aliases for BN_rand() and BN_rand_range() since 1.1.0. Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14080)
Diffstat (limited to 'crypto/bn')
-rw-r--r--crypto/bn/bn_rand.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/bn/bn_rand.c b/crypto/bn/bn_rand.c
index c6dd6e8814..3068c28710 100644
--- a/crypto/bn/bn_rand.c
+++ b/crypto/bn/bn_rand.c
@@ -217,6 +217,7 @@ int BN_priv_rand_range(BIGNUM *r, const BIGNUM *range)
return bnrand_range(PRIVATE, r, range, NULL);
}
+# ifndef OPENSSL_NO_DEPRECATED_3_0
int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom)
{
return BN_rand(rnd, bits, top, bottom);
@@ -226,6 +227,7 @@ int BN_pseudo_rand_range(BIGNUM *r, const BIGNUM *range)
{
return BN_rand_range(r, range);
}
+# endif
#endif
/*