summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2025-11-07 13:41:40 +0000
committerjsing <>2025-11-07 13:41:40 +0000
commit235bf5dad98ea543384128e2d21e8d4801b6c36c (patch)
tree6161d491c4bdb8583d8b37ef6ace530b3ce2f015 /src
parent848d003b901a7c05557ef5badd7aae17dfc4470d (diff)
downloadopenbsd-235bf5dad98ea543384128e2d21e8d4801b6c36c.tar.gz
openbsd-235bf5dad98ea543384128e2d21e8d4801b6c36c.tar.bz2
openbsd-235bf5dad98ea543384128e2d21e8d4801b6c36c.zip
Use 64 bit BN_ULONG on 64 bit Windows platforms.
64 bit Windows is a special LLP snowflake and it is currently incorrectly using 32 bit BN_ULONG, since _LP64 is not defined. Enable 64 bit BN_ULONG if _LP64 or _WIN64 is defined. ok tb@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/bn/bn.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bn/bn.h b/src/lib/libcrypto/bn/bn.h
index 7c98d4e853..e64fcf355f 100644
--- a/src/lib/libcrypto/bn/bn.h
+++ b/src/lib/libcrypto/bn/bn.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn.h,v 1.82 2025/11/05 13:00:26 jsing Exp $ */ 1/* $OpenBSD: bn.h,v 1.83 2025/11/07 13:41:40 jsing Exp $ */
2/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -140,7 +140,7 @@
140extern "C" { 140extern "C" {
141#endif 141#endif
142 142
143#ifdef _LP64 143#if defined(_LP64) || defined(_WIN64)
144#undef BN_LLONG 144#undef BN_LLONG
145#define BN_ULONG uint64_t 145#define BN_ULONG uint64_t
146#define BN_LONG int64_t 146#define BN_LONG int64_t