From 58fdb4e7ed83b96c50da8da9e8f5c035e68c416a Mon Sep 17 00:00:00 2001 From: tb Date: Wed, 2 Aug 2023 08:26:55 +0000 Subject: [PATCH] Remove the unused flags accessors for BN_BLINDING ok jsing --- lib/libcrypto/bn/bn_blind.c | 14 +------------- lib/libcrypto/bn/bn_local.h | 4 +--- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/lib/libcrypto/bn/bn_blind.c b/lib/libcrypto/bn/bn_blind.c index 20b82fc9bc7..54b75c294ba 100644 --- a/lib/libcrypto/bn/bn_blind.c +++ b/lib/libcrypto/bn/bn_blind.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_blind.c,v 1.25 2023/08/02 08:02:56 tb Exp $ */ +/* $OpenBSD: bn_blind.c,v 1.26 2023/08/02 08:26:55 tb Exp $ */ /* ==================================================================== * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. * @@ -281,18 +281,6 @@ BN_BLINDING_thread_id(BN_BLINDING *b) return &b->tid; } -unsigned long -BN_BLINDING_get_flags(const BN_BLINDING *b) -{ - return b->flags; -} - -void -BN_BLINDING_set_flags(BN_BLINDING *b, unsigned long flags) -{ - b->flags = flags; -} - BN_BLINDING * BN_BLINDING_create_param(BN_BLINDING *b, const BIGNUM *e, BIGNUM *m, BN_CTX *ctx, int (*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, diff --git a/lib/libcrypto/bn/bn_local.h b/lib/libcrypto/bn/bn_local.h index 989770f2d63..c40002bed70 100644 --- a/lib/libcrypto/bn/bn_local.h +++ b/lib/libcrypto/bn/bn_local.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_local.h,v 1.27 2023/07/28 10:05:16 tb Exp $ */ +/* $OpenBSD: bn_local.h,v 1.28 2023/08/02 08:26:55 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -304,8 +304,6 @@ int BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *); int BN_BLINDING_invert_ex(BIGNUM *n, const BIGNUM *r, BN_BLINDING *b, BN_CTX *); CRYPTO_THREADID *BN_BLINDING_thread_id(BN_BLINDING *); -unsigned long BN_BLINDING_get_flags(const BN_BLINDING *); -void BN_BLINDING_set_flags(BN_BLINDING *, unsigned long); BN_BLINDING *BN_BLINDING_create_param(BN_BLINDING *b, const BIGNUM *e, BIGNUM *m, BN_CTX *ctx, int (*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, -- 2.20.1