From 341829195e0c845cf26339768f275f021b69fedc Mon Sep 17 00:00:00 2001 From: tb <> Date: Mon, 15 Dec 2025 12:09:46 +0000 Subject: BN_get_word(): return (BN_ULONG)-1 on error rather than BN_MASK2 While the latter is more general in that it also works on 1-complement achitectures, we don't care about that. Adjust documentation and the only error check for it in libcrypto. ok deraadt --- src/lib/libcrypto/man/BN_zero.3 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/libcrypto/man') diff --git a/src/lib/libcrypto/man/BN_zero.3 b/src/lib/libcrypto/man/BN_zero.3 index 18a31a1080..d94a2a10da 100644 --- a/src/lib/libcrypto/man/BN_zero.3 +++ b/src/lib/libcrypto/man/BN_zero.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: BN_zero.3,v 1.15 2025/06/14 06:48:47 tb Exp $ +.\" $OpenBSD: BN_zero.3,v 1.16 2025/12/15 12:09:46 tb Exp $ .\" full merge up to: OpenSSL a528d4f0 Oct 27 13:40:11 2015 -0400 .\" selective merge up to: OpenSSL b713c4ff Jan 22 14:41:09 2018 -0500 .\" @@ -67,7 +67,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: June 14 2025 $ +.Dd $Mdocdate: December 15 2025 $ .Dt BN_ZERO 3 .Os .Sh NAME @@ -132,7 +132,7 @@ This constant is useful for comparisons and assignments. .Fn BN_get_word returns the value .Fa a , -or a number with all bits set if +or (BN_ULONG)\-1 if .Fa a cannot be represented as a .Vt BN_ULONG . -- cgit v1.2.3-55-g6feb