diff options
Diffstat (limited to 'src/lib/libcrypto/bn/bn_lib.c')
| -rw-r--r-- | src/lib/libcrypto/bn/bn_lib.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/libcrypto/bn/bn_lib.c b/src/lib/libcrypto/bn/bn_lib.c index 72b988650c..0326e72c4d 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.93 2024/04/16 13:07:14 jsing Exp $ */ | 1 | /* $OpenBSD: bn_lib.c,v 1.95 2025/12/15 12:09:46 tb 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 | * |
| @@ -63,10 +63,9 @@ | |||
| 63 | 63 | ||
| 64 | #include <openssl/opensslconf.h> | 64 | #include <openssl/opensslconf.h> |
| 65 | 65 | ||
| 66 | #include <openssl/err.h> | ||
| 67 | |||
| 68 | #include "bn_local.h" | 66 | #include "bn_local.h" |
| 69 | #include "bn_internal.h" | 67 | #include "bn_internal.h" |
| 68 | #include "err_local.h" | ||
| 70 | 69 | ||
| 71 | BIGNUM * | 70 | BIGNUM * |
| 72 | BN_new(void) | 71 | BN_new(void) |
| @@ -350,7 +349,7 @@ BN_ULONG | |||
| 350 | BN_get_word(const BIGNUM *a) | 349 | BN_get_word(const BIGNUM *a) |
| 351 | { | 350 | { |
| 352 | if (a->top > 1) | 351 | if (a->top > 1) |
| 353 | return BN_MASK2; | 352 | return (BN_ULONG)-1; |
| 354 | else if (a->top == 1) | 353 | else if (a->top == 1) |
| 355 | return a->d[0]; | 354 | return a->d[0]; |
| 356 | /* a->top == 0 */ | 355 | /* a->top == 0 */ |
