From 3a8cbd644148e0c88087573e17193a9627fa21d4 Mon Sep 17 00:00:00 2001 From: tb Date: Tue, 25 Apr 2023 17:01:21 +0000 Subject: [PATCH] Remove old BN_one/BN_zero compat stuff ok jsing --- lib/libcrypto/bn/bn.h | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/libcrypto/bn/bn.h b/lib/libcrypto/bn/bn.h index b443d82c960..79a802eeedd 100644 --- a/lib/libcrypto/bn/bn.h +++ b/lib/libcrypto/bn/bn.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bn.h,v 1.64 2023/04/25 16:50:33 tb Exp $ */ +/* $OpenBSD: bn.h,v 1.65 2023/04/25 17:01:21 tb Exp $ */ /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -323,20 +323,8 @@ int BN_is_one(const BIGNUM *a); int BN_is_word(const BIGNUM *a, const BN_ULONG w); int BN_is_odd(const BIGNUM *a); -#if defined(LIBRESSL_INTERNAL) || defined(LIBRESSL_NEXT_API) void BN_zero(BIGNUM *a); int BN_one(BIGNUM *a); -#else -#define BN_one(a) BN_set_word((a), 1) - -void BN_zero_ex(BIGNUM *a); - -#ifdef OPENSSL_NO_DEPRECATED -#define BN_zero(a) BN_zero_ex(a) -#else -#define BN_zero(a) (BN_set_word((a),0)) -#endif -#endif const BIGNUM *BN_value_one(void); char * BN_options(void); -- 2.20.1