From 235bf5dad98ea543384128e2d21e8d4801b6c36c Mon Sep 17 00:00:00 2001 From: jsing <> Date: Fri, 7 Nov 2025 13:41:40 +0000 Subject: 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@ --- src/lib/libcrypto/bn/bn.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 @@ -/* $OpenBSD: bn.h,v 1.82 2025/11/05 13:00:26 jsing Exp $ */ +/* $OpenBSD: bn.h,v 1.83 2025/11/07 13:41:40 jsing Exp $ */ /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -140,7 +140,7 @@ extern "C" { #endif -#ifdef _LP64 +#if defined(_LP64) || defined(_WIN64) #undef BN_LLONG #define BN_ULONG uint64_t #define BN_LONG int64_t -- cgit v1.2.3-55-g6feb