From cfeb4098e14715e4fc4c508e2a707258822aeaa7 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Mon, 15 Apr 2024 14:36:16 +0000 Subject: Enable negative zero checks for BN_clear_bit() and BN_mask_bits(). --- src/regress/lib/libcrypto/bn/bn_bits.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/bn/bn_bits.c b/src/regress/lib/libcrypto/bn/bn_bits.c index 4ed13e424b..e93fabfdd5 100644 --- a/src/regress/lib/libcrypto/bn/bn_bits.c +++ b/src/regress/lib/libcrypto/bn/bn_bits.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_bits.c,v 1.1 2024/04/09 14:59:57 jsing Exp $ */ +/* $OpenBSD: bn_bits.c,v 1.2 2024/04/15 14:36:16 jsing Exp $ */ /* * Copyright (c) 2024 Joel Sing * @@ -111,12 +111,10 @@ test_bn_clear_bit(void) fprintf(stderr, "FAIL: clear bit did not result in zero\n"); goto failure; } -#if 0 if (BN_is_negative(bn)) { fprintf(stderr, "FAIL: clear bit resulted in -0\n"); goto failure; } -#endif failed = 0; @@ -198,12 +196,10 @@ test_bn_mask_bits(void) fprintf(stderr, "FAIL: mask bits did not result in zero\n"); goto failure; } -#if 0 if (BN_is_negative(bn)) { fprintf(stderr, "FAIL: mask bits resulted in -0\n"); goto failure; } -#endif failed = 0; -- cgit v1.2.3-55-g6feb