From bfae00e6c7be629c3c12a5656dd4fecbddd28352 Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 28 Nov 2005 19:07:42 +0000 Subject: [PATCH] use explicitly sized types for U_LLONG U_LONG and LONG; otherwise bn breaks on 64 bit platforms. The "LONG" openssl wants is really a 32 bit int. --- crypto/dist/openssl/crypto/bn/bn.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/dist/openssl/crypto/bn/bn.h b/crypto/dist/openssl/crypto/bn/bn.h index 03ebd506b5ab..25ab321a534d 100644 --- a/crypto/dist/openssl/crypto/bn/bn.h +++ b/crypto/dist/openssl/crypto/bn/bn.h @@ -169,11 +169,11 @@ extern "C" { # if defined(OPENSSL_SYS_WIN32) && !defined(__GNUC__) # define BN_ULLONG unsigned __int64 # else -# define BN_ULLONG unsigned long long +# define BN_ULLONG u_int64_t # endif #endif -#define BN_ULONG unsigned long -#define BN_LONG long +#define BN_ULONG u_int32_t +#define BN_LONG int32_t #define BN_BITS 64 #define BN_BYTES 4 #define BN_BITS2 32