diff options
-rw-r--r-- | src/lib/libcrypto/bn/bn_lib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bn/bn_lib.c b/src/lib/libcrypto/bn/bn_lib.c index e00909bb3b..32ac7ae606 100644 --- a/src/lib/libcrypto/bn/bn_lib.c +++ b/src/lib/libcrypto/bn/bn_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn_lib.c,v 1.73 2023/02/13 04:03:38 jsing Exp $ */ | 1 | /* $OpenBSD: bn_lib.c,v 1.74 2023/02/14 18:01:15 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -66,6 +66,7 @@ | |||
66 | #include <openssl/err.h> | 66 | #include <openssl/err.h> |
67 | 67 | ||
68 | #include "bn_local.h" | 68 | #include "bn_local.h" |
69 | #include "bn_internal.h" | ||
69 | 70 | ||
70 | BIGNUM * | 71 | BIGNUM * |
71 | BN_new(void) | 72 | BN_new(void) |
@@ -730,7 +731,7 @@ BN_mask_bits(BIGNUM *a, int n) | |||
730 | void | 731 | void |
731 | BN_set_negative(BIGNUM *bn, int neg) | 732 | BN_set_negative(BIGNUM *bn, int neg) |
732 | { | 733 | { |
733 | bn->neg = (neg != 0) && !BN_is_zero(bn); | 734 | bn->neg = ~BN_is_zero(bn) & bn_ct_ne_zero(neg); |
734 | } | 735 | } |
735 | 736 | ||
736 | int | 737 | int |