summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2023-02-13 04:00:39 +0000
committerjsing <>2023-02-13 04:00:39 +0000
commit37cc9daecdcdd1dd987c210278a1f087f587f840 (patch)
tree02be6e6a3dd5505c6bcd6a09560e729e7bb26658 /src
parent596d890a41bee587e109a89a790d4834dc60a125 (diff)
downloadopenbsd-37cc9daecdcdd1dd987c210278a1f087f587f840.tar.gz
openbsd-37cc9daecdcdd1dd987c210278a1f087f587f840.tar.bz2
openbsd-37cc9daecdcdd1dd987c210278a1f087f587f840.zip
Add currently failing negative zero check to BN_rshift() regress.
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/bn/bn_shift.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_shift.c b/src/regress/lib/libcrypto/bn/bn_shift.c
index 15359db083..88d0e65cba 100644
--- a/src/regress/lib/libcrypto/bn/bn_shift.c
+++ b/src/regress/lib/libcrypto/bn/bn_shift.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_shift.c,v 1.7 2023/01/07 14:30:57 jsing Exp $ */ 1/* $OpenBSD: bn_shift.c,v 1.8 2023/02/13 04:00:39 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2022 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -341,6 +341,10 @@ test_bn_rshift_to_zero(void)
341 fprintf(stderr, "FAIL: BN is not zero\n"); 341 fprintf(stderr, "FAIL: BN is not zero\n");
342 goto failure; 342 goto failure;
343 } 343 }
344 if (BN_is_negative(bn1)) {
345 fprintf(stderr, "FAIL: BN is negative zero\n");
346 goto failure;
347 }
344 348
345 failed = 0; 349 failed = 0;
346 350