diff options
-rw-r--r-- | src/lib/libcrypto/bn/bn.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/lib/libcrypto/bn/bn.h b/src/lib/libcrypto/bn/bn.h index b443d82c96..79a802eeed 100644 --- a/src/lib/libcrypto/bn/bn.h +++ b/src/lib/libcrypto/bn/bn.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn.h,v 1.64 2023/04/25 16:50:33 tb Exp $ */ | 1 | /* $OpenBSD: bn.h,v 1.65 2023/04/25 17:01:21 tb Exp $ */ |
2 | /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -323,20 +323,8 @@ int BN_is_one(const BIGNUM *a); | |||
323 | int BN_is_word(const BIGNUM *a, const BN_ULONG w); | 323 | int BN_is_word(const BIGNUM *a, const BN_ULONG w); |
324 | int BN_is_odd(const BIGNUM *a); | 324 | int BN_is_odd(const BIGNUM *a); |
325 | 325 | ||
326 | #if defined(LIBRESSL_INTERNAL) || defined(LIBRESSL_NEXT_API) | ||
327 | void BN_zero(BIGNUM *a); | 326 | void BN_zero(BIGNUM *a); |
328 | int BN_one(BIGNUM *a); | 327 | int BN_one(BIGNUM *a); |
329 | #else | ||
330 | #define BN_one(a) BN_set_word((a), 1) | ||
331 | |||
332 | void BN_zero_ex(BIGNUM *a); | ||
333 | |||
334 | #ifdef OPENSSL_NO_DEPRECATED | ||
335 | #define BN_zero(a) BN_zero_ex(a) | ||
336 | #else | ||
337 | #define BN_zero(a) (BN_set_word((a),0)) | ||
338 | #endif | ||
339 | #endif | ||
340 | 328 | ||
341 | const BIGNUM *BN_value_one(void); | 329 | const BIGNUM *BN_value_one(void); |
342 | char * BN_options(void); | 330 | char * BN_options(void); |