summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2023-04-25 17:01:21 +0000
committertb <>2023-04-25 17:01:21 +0000
commitc0c3065e1fbb425e8de2cf12d6809e3d303a64ac (patch)
tree99b53314f24716a07f8a58697e29a53dc6b38938 /src/lib
parent2a03a7f8e865066559744ab3a932de210f129974 (diff)
downloadopenbsd-c0c3065e1fbb425e8de2cf12d6809e3d303a64ac.tar.gz
openbsd-c0c3065e1fbb425e8de2cf12d6809e3d303a64ac.tar.bz2
openbsd-c0c3065e1fbb425e8de2cf12d6809e3d303a64ac.zip
Remove old BN_one/BN_zero compat stuff
ok jsing
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/bn/bn.h14
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);
323int BN_is_word(const BIGNUM *a, const BN_ULONG w); 323int BN_is_word(const BIGNUM *a, const BN_ULONG w);
324int BN_is_odd(const BIGNUM *a); 324int BN_is_odd(const BIGNUM *a);
325 325
326#if defined(LIBRESSL_INTERNAL) || defined(LIBRESSL_NEXT_API)
327void BN_zero(BIGNUM *a); 326void BN_zero(BIGNUM *a);
328int BN_one(BIGNUM *a); 327int BN_one(BIGNUM *a);
329#else
330#define BN_one(a) BN_set_word((a), 1)
331
332void 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
341const BIGNUM *BN_value_one(void); 329const BIGNUM *BN_value_one(void);
342char * BN_options(void); 330char * BN_options(void);