diff options
28 files changed, 14 insertions, 130 deletions
diff --git a/src/lib/libcrypto/aes/aes_x86core.c b/src/lib/libcrypto/aes/aes_x86core.c index 295ea22bb4..8b3b29e28c 100644 --- a/src/lib/libcrypto/aes/aes_x86core.c +++ b/src/lib/libcrypto/aes/aes_x86core.c | |||
| @@ -79,10 +79,7 @@ prefetch256(const void *table) | |||
| 79 | #undef GETU32 | 79 | #undef GETU32 |
| 80 | #define GETU32(p) (*((u32*)(p))) | 80 | #define GETU32(p) (*((u32*)(p))) |
| 81 | 81 | ||
| 82 | #if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__) | 82 | #if defined(_LP64) |
| 83 | typedef unsigned __int64 u64; | ||
| 84 | #define U64(C) C##UI64 | ||
| 85 | #elif defined(__arch64__) | ||
| 86 | typedef unsigned long u64; | 83 | typedef unsigned long u64; |
| 87 | #define U64(C) C##UL | 84 | #define U64(C) C##UL |
| 88 | #else | 85 | #else |
diff --git a/src/lib/libcrypto/bn/asm/x86_64-gcc.c b/src/lib/libcrypto/bn/asm/x86_64-gcc.c index acb0b40118..6a7fa4aea9 100644 --- a/src/lib/libcrypto/bn/asm/x86_64-gcc.c +++ b/src/lib/libcrypto/bn/asm/x86_64-gcc.c | |||
| @@ -55,11 +55,7 @@ | |||
| 55 | * machine. | 55 | * machine. |
| 56 | */ | 56 | */ |
| 57 | 57 | ||
| 58 | #ifdef _WIN64 | ||
| 59 | #define BN_ULONG unsigned long long | ||
| 60 | #else | ||
| 61 | #define BN_ULONG unsigned long | 58 | #define BN_ULONG unsigned long |
| 62 | #endif | ||
| 63 | 59 | ||
| 64 | #undef mul | 60 | #undef mul |
| 65 | #undef mul_add | 61 | #undef mul_add |
diff --git a/src/lib/libcrypto/bn/bn_exp.c b/src/lib/libcrypto/bn/bn_exp.c index 2047e1cc3f..22ef643c02 100644 --- a/src/lib/libcrypto/bn/bn_exp.c +++ b/src/lib/libcrypto/bn/bn_exp.c | |||
| @@ -114,12 +114,7 @@ | |||
| 114 | #include "bn_lcl.h" | 114 | #include "bn_lcl.h" |
| 115 | 115 | ||
| 116 | #include <stdlib.h> | 116 | #include <stdlib.h> |
| 117 | #ifdef _WIN32 | 117 | #if defined(__GNUC__) |
| 118 | # include <malloc.h> | ||
| 119 | # ifndef alloca | ||
| 120 | # define alloca _alloca | ||
| 121 | # endif | ||
| 122 | #elif defined(__GNUC__) | ||
| 123 | # ifndef alloca | 118 | # ifndef alloca |
| 124 | # define alloca(s) __builtin_alloca((s)) | 119 | # define alloca(s) __builtin_alloca((s)) |
| 125 | # endif | 120 | # endif |
diff --git a/src/lib/libcrypto/cast/cast_lcl.h b/src/lib/libcrypto/cast/cast_lcl.h index ec14804fbb..61facd09d8 100644 --- a/src/lib/libcrypto/cast/cast_lcl.h +++ b/src/lib/libcrypto/cast/cast_lcl.h | |||
| @@ -56,11 +56,6 @@ | |||
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #ifdef OPENSSL_SYS_WIN32 | ||
| 60 | #include <stdlib.h> | ||
| 61 | #endif | ||
| 62 | |||
| 63 | |||
| 64 | #undef c2l | 59 | #undef c2l |
| 65 | #define c2l(c,l) (l =((unsigned long)(*((c)++))) , \ | 60 | #define c2l(c,l) (l =((unsigned long)(*((c)++))) , \ |
| 66 | l|=((unsigned long)(*((c)++)))<< 8L, \ | 61 | l|=((unsigned long)(*((c)++)))<< 8L, \ |
diff --git a/src/lib/libcrypto/des/enc_read.c b/src/lib/libcrypto/des/enc_read.c index 23ad458dcf..e1ac04c5b3 100644 --- a/src/lib/libcrypto/des/enc_read.c +++ b/src/lib/libcrypto/des/enc_read.c | |||
| @@ -150,11 +150,7 @@ int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched, | |||
| 150 | /* first - get the length */ | 150 | /* first - get the length */ |
| 151 | while (net_num < HDRSIZE) | 151 | while (net_num < HDRSIZE) |
| 152 | { | 152 | { |
| 153 | #ifndef OPENSSL_SYS_WIN32 | ||
| 154 | i=read(fd,(void *)&(net[net_num]),HDRSIZE-net_num); | 153 | i=read(fd,(void *)&(net[net_num]),HDRSIZE-net_num); |
| 155 | #else | ||
| 156 | i=_read(fd,(void *)&(net[net_num]),HDRSIZE-net_num); | ||
| 157 | #endif | ||
| 158 | #ifdef EINTR | 154 | #ifdef EINTR |
| 159 | if ((i == -1) && (errno == EINTR)) continue; | 155 | if ((i == -1) && (errno == EINTR)) continue; |
| 160 | #endif | 156 | #endif |
| @@ -176,11 +172,7 @@ int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched, | |||
| 176 | net_num=0; | 172 | net_num=0; |
| 177 | while (net_num < rnum) | 173 | while (net_num < rnum) |
| 178 | { | 174 | { |
| 179 | #ifndef OPENSSL_SYS_WIN32 | ||
| 180 | i=read(fd,(void *)&(net[net_num]),rnum-net_num); | 175 | i=read(fd,(void *)&(net[net_num]),rnum-net_num); |
| 181 | #else | ||
| 182 | i=_read(fd,(void *)&(net[net_num]),rnum-net_num); | ||
| 183 | #endif | ||
| 184 | #ifdef EINTR | 176 | #ifdef EINTR |
| 185 | if ((i == -1) && (errno == EINTR)) continue; | 177 | if ((i == -1) && (errno == EINTR)) continue; |
| 186 | #endif | 178 | #endif |
diff --git a/src/lib/libcrypto/des/enc_writ.c b/src/lib/libcrypto/des/enc_writ.c index 8f6b033c87..18562310ee 100644 --- a/src/lib/libcrypto/des/enc_writ.c +++ b/src/lib/libcrypto/des/enc_writ.c | |||
| @@ -156,11 +156,7 @@ int DES_enc_write(int fd, const void *_buf, int len, | |||
| 156 | { | 156 | { |
| 157 | /* eay 26/08/92 I was not doing writing from where we | 157 | /* eay 26/08/92 I was not doing writing from where we |
| 158 | * got up to. */ | 158 | * got up to. */ |
| 159 | #ifndef _WIN32 | ||
| 160 | i=write(fd,(void *)&(outbuf[j]),outnum-j); | 159 | i=write(fd,(void *)&(outbuf[j]),outnum-j); |
| 161 | #else | ||
| 162 | i=_write(fd,(void *)&(outbuf[j]),outnum-j); | ||
| 163 | #endif | ||
| 164 | if (i == -1) | 160 | if (i == -1) |
| 165 | { | 161 | { |
| 166 | #ifdef EINTR | 162 | #ifdef EINTR |
diff --git a/src/lib/libcrypto/engine/eng_aesni.c b/src/lib/libcrypto/engine/eng_aesni.c index 5fdb33bfde..d547d7f465 100644 --- a/src/lib/libcrypto/engine/eng_aesni.c +++ b/src/lib/libcrypto/engine/eng_aesni.c | |||
| @@ -309,11 +309,7 @@ static void aesni_ofb128_encrypt(const unsigned char *in, unsigned char *out, | |||
| 309 | } | 309 | } |
| 310 | /* ===== Engine "management" functions ===== */ | 310 | /* ===== Engine "management" functions ===== */ |
| 311 | 311 | ||
| 312 | #if defined(_WIN32) | ||
| 313 | typedef unsigned __int64 IA32CAP; | ||
| 314 | #else | ||
| 315 | typedef unsigned long long IA32CAP; | 312 | typedef unsigned long long IA32CAP; |
| 316 | #endif | ||
| 317 | 313 | ||
| 318 | /* Prepare the ENGINE structure for registration */ | 314 | /* Prepare the ENGINE structure for registration */ |
| 319 | static int | 315 | static int |
diff --git a/src/lib/libcrypto/engine/eng_padlock.c b/src/lib/libcrypto/engine/eng_padlock.c index c27181ba75..5a80b2b16d 100644 --- a/src/lib/libcrypto/engine/eng_padlock.c +++ b/src/lib/libcrypto/engine/eng_padlock.c | |||
| @@ -129,12 +129,7 @@ void ENGINE_load_padlock (void) | |||
| 129 | /* We do these includes here to avoid header problems on platforms that | 129 | /* We do these includes here to avoid header problems on platforms that |
| 130 | do not have the VIA padlock anyway... */ | 130 | do not have the VIA padlock anyway... */ |
| 131 | #include <stdlib.h> | 131 | #include <stdlib.h> |
| 132 | #ifdef _WIN32 | 132 | #if defined(__GNUC__) |
| 133 | # include <malloc.h> | ||
| 134 | # ifndef alloca | ||
| 135 | # define alloca _alloca | ||
| 136 | # endif | ||
| 137 | #elif defined(__GNUC__) | ||
| 138 | # ifndef alloca | 133 | # ifndef alloca |
| 139 | # define alloca(s) __builtin_alloca(s) | 134 | # define alloca(s) __builtin_alloca(s) |
| 140 | # endif | 135 | # endif |
diff --git a/src/lib/libcrypto/engine/eng_rsax.c b/src/lib/libcrypto/engine/eng_rsax.c index c0f6851601..1b15b6f1a3 100644 --- a/src/lib/libcrypto/engine/eng_rsax.c +++ b/src/lib/libcrypto/engine/eng_rsax.c | |||
| @@ -217,11 +217,7 @@ static int e_rsax_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)(void)) | |||
| 217 | 217 | ||
| 218 | #ifndef OPENSSL_NO_RSA | 218 | #ifndef OPENSSL_NO_RSA |
| 219 | 219 | ||
| 220 | #ifdef _WIN32 | ||
| 221 | typedef unsigned __int64 UINT64; | ||
| 222 | #else | ||
| 223 | typedef unsigned long long UINT64; | 220 | typedef unsigned long long UINT64; |
| 224 | #endif | ||
| 225 | typedef unsigned short UINT16; | 221 | typedef unsigned short UINT16; |
| 226 | 222 | ||
| 227 | /* Table t is interleaved in the following manner: | 223 | /* Table t is interleaved in the following manner: |
diff --git a/src/lib/libcrypto/modes/modes_lcl.h b/src/lib/libcrypto/modes/modes_lcl.h index 2fc8138273..68c0e355ad 100644 --- a/src/lib/libcrypto/modes/modes_lcl.h +++ b/src/lib/libcrypto/modes/modes_lcl.h | |||
| @@ -9,11 +9,7 @@ | |||
| 9 | #include <machine/endian.h> | 9 | #include <machine/endian.h> |
| 10 | 10 | ||
| 11 | 11 | ||
| 12 | #if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__) | 12 | #if defined(_LP64) |
| 13 | typedef __int64 i64; | ||
| 14 | typedef unsigned __int64 u64; | ||
| 15 | #define U64(C) C##UI64 | ||
| 16 | #elif defined(__arch64__) | ||
| 17 | typedef long i64; | 13 | typedef long i64; |
| 18 | typedef unsigned long u64; | 14 | typedef unsigned long u64; |
| 19 | #define U64(C) C##UL | 15 | #define U64(C) C##UL |
diff --git a/src/lib/libcrypto/sha/sha.h b/src/lib/libcrypto/sha/sha.h index 435352c208..c0c3c16c08 100644 --- a/src/lib/libcrypto/sha/sha.h +++ b/src/lib/libcrypto/sha/sha.h | |||
| @@ -154,10 +154,7 @@ void SHA256_Transform(SHA256_CTX *c, const unsigned char *data); | |||
| 154 | #define SHA512_CBLOCK (SHA_LBLOCK*8) /* SHA-512 treats input data as a | 154 | #define SHA512_CBLOCK (SHA_LBLOCK*8) /* SHA-512 treats input data as a |
| 155 | * contiguous array of 64 bit | 155 | * contiguous array of 64 bit |
| 156 | * wide big-endian values. */ | 156 | * wide big-endian values. */ |
| 157 | #if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__) | 157 | #if defined(_LP64) |
| 158 | #define SHA_LONG64 unsigned __int64 | ||
| 159 | #define U64(C) C##UI64 | ||
| 160 | #elif defined(__arch64__) | ||
| 161 | #define SHA_LONG64 unsigned long | 158 | #define SHA_LONG64 unsigned long |
| 162 | #define U64(C) C##UL | 159 | #define U64(C) C##UL |
| 163 | #else | 160 | #else |
diff --git a/src/lib/libcrypto/srp/srp_lib.c b/src/lib/libcrypto/srp/srp_lib.c index 8cc94f51db..a3a67eda2e 100644 --- a/src/lib/libcrypto/srp/srp_lib.c +++ b/src/lib/libcrypto/srp/srp_lib.c | |||
| @@ -63,9 +63,7 @@ | |||
| 63 | #include <openssl/evp.h> | 63 | #include <openssl/evp.h> |
| 64 | 64 | ||
| 65 | #if (BN_BYTES == 8) | 65 | #if (BN_BYTES == 8) |
| 66 | # if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__) | 66 | # if defined(_LP64) |
| 67 | # define bn_pack4(a1,a2,a3,a4) ((a1##UI64<<48)|(a2##UI64<<32)|(a3##UI64<<16)|a4##UI64) | ||
| 68 | # elif defined(__arch64__) | ||
| 69 | # define bn_pack4(a1,a2,a3,a4) ((a1##UL<<48)|(a2##UL<<32)|(a3##UL<<16)|a4##UL) | 67 | # define bn_pack4(a1,a2,a3,a4) ((a1##UL<<48)|(a2##UL<<32)|(a3##UL<<16)|a4##UL) |
| 70 | # else | 68 | # else |
| 71 | # define bn_pack4(a1,a2,a3,a4) ((a1##ULL<<48)|(a2##ULL<<32)|(a3##ULL<<16)|a4##ULL) | 69 | # define bn_pack4(a1,a2,a3,a4) ((a1##ULL<<48)|(a2##ULL<<32)|(a3##ULL<<16)|a4##ULL) |
diff --git a/src/lib/libcrypto/ts/ts.h b/src/lib/libcrypto/ts/ts.h index 3c5ab727db..085e062b96 100644 --- a/src/lib/libcrypto/ts/ts.h +++ b/src/lib/libcrypto/ts/ts.h | |||
| @@ -89,11 +89,6 @@ | |||
| 89 | extern "C" { | 89 | extern "C" { |
| 90 | #endif | 90 | #endif |
| 91 | 91 | ||
| 92 | #ifdef WIN32 | ||
| 93 | /* Under Win32 this is defined in wincrypt.h */ | ||
| 94 | #undef X509_NAME | ||
| 95 | #endif | ||
| 96 | |||
| 97 | #include <openssl/x509.h> | 92 | #include <openssl/x509.h> |
| 98 | #include <openssl/x509v3.h> | 93 | #include <openssl/x509v3.h> |
| 99 | 94 | ||
diff --git a/src/lib/libcrypto/whrlpool/wp_block.c b/src/lib/libcrypto/whrlpool/wp_block.c index 11164e50f5..9c194f968b 100644 --- a/src/lib/libcrypto/whrlpool/wp_block.c +++ b/src/lib/libcrypto/whrlpool/wp_block.c | |||
| @@ -40,9 +40,7 @@ | |||
| 40 | #include <machine/endian.h> | 40 | #include <machine/endian.h> |
| 41 | 41 | ||
| 42 | typedef unsigned char u8; | 42 | typedef unsigned char u8; |
| 43 | #if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32) | 43 | #if defined(_LP64) |
| 44 | typedef unsigned __int64 u64; | ||
| 45 | #elif defined(__arch64__) | ||
| 46 | typedef unsigned long u64; | 44 | typedef unsigned long u64; |
| 47 | #else | 45 | #else |
| 48 | typedef unsigned long long u64; | 46 | typedef unsigned long long u64; |
diff --git a/src/lib/libssl/src/crypto/aes/aes_x86core.c b/src/lib/libssl/src/crypto/aes/aes_x86core.c index 295ea22bb4..8b3b29e28c 100644 --- a/src/lib/libssl/src/crypto/aes/aes_x86core.c +++ b/src/lib/libssl/src/crypto/aes/aes_x86core.c | |||
| @@ -79,10 +79,7 @@ prefetch256(const void *table) | |||
| 79 | #undef GETU32 | 79 | #undef GETU32 |
| 80 | #define GETU32(p) (*((u32*)(p))) | 80 | #define GETU32(p) (*((u32*)(p))) |
| 81 | 81 | ||
| 82 | #if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__) | 82 | #if defined(_LP64) |
| 83 | typedef unsigned __int64 u64; | ||
| 84 | #define U64(C) C##UI64 | ||
| 85 | #elif defined(__arch64__) | ||
| 86 | typedef unsigned long u64; | 83 | typedef unsigned long u64; |
| 87 | #define U64(C) C##UL | 84 | #define U64(C) C##UL |
| 88 | #else | 85 | #else |
diff --git a/src/lib/libssl/src/crypto/bn/asm/x86_64-gcc.c b/src/lib/libssl/src/crypto/bn/asm/x86_64-gcc.c index acb0b40118..6a7fa4aea9 100644 --- a/src/lib/libssl/src/crypto/bn/asm/x86_64-gcc.c +++ b/src/lib/libssl/src/crypto/bn/asm/x86_64-gcc.c | |||
| @@ -55,11 +55,7 @@ | |||
| 55 | * machine. | 55 | * machine. |
| 56 | */ | 56 | */ |
| 57 | 57 | ||
| 58 | #ifdef _WIN64 | ||
| 59 | #define BN_ULONG unsigned long long | ||
| 60 | #else | ||
| 61 | #define BN_ULONG unsigned long | 58 | #define BN_ULONG unsigned long |
| 62 | #endif | ||
| 63 | 59 | ||
| 64 | #undef mul | 60 | #undef mul |
| 65 | #undef mul_add | 61 | #undef mul_add |
diff --git a/src/lib/libssl/src/crypto/bn/bn_exp.c b/src/lib/libssl/src/crypto/bn/bn_exp.c index 2047e1cc3f..22ef643c02 100644 --- a/src/lib/libssl/src/crypto/bn/bn_exp.c +++ b/src/lib/libssl/src/crypto/bn/bn_exp.c | |||
| @@ -114,12 +114,7 @@ | |||
| 114 | #include "bn_lcl.h" | 114 | #include "bn_lcl.h" |
| 115 | 115 | ||
| 116 | #include <stdlib.h> | 116 | #include <stdlib.h> |
| 117 | #ifdef _WIN32 | 117 | #if defined(__GNUC__) |
| 118 | # include <malloc.h> | ||
| 119 | # ifndef alloca | ||
| 120 | # define alloca _alloca | ||
| 121 | # endif | ||
| 122 | #elif defined(__GNUC__) | ||
| 123 | # ifndef alloca | 118 | # ifndef alloca |
| 124 | # define alloca(s) __builtin_alloca((s)) | 119 | # define alloca(s) __builtin_alloca((s)) |
| 125 | # endif | 120 | # endif |
diff --git a/src/lib/libssl/src/crypto/cast/cast_lcl.h b/src/lib/libssl/src/crypto/cast/cast_lcl.h index ec14804fbb..61facd09d8 100644 --- a/src/lib/libssl/src/crypto/cast/cast_lcl.h +++ b/src/lib/libssl/src/crypto/cast/cast_lcl.h | |||
| @@ -56,11 +56,6 @@ | |||
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #ifdef OPENSSL_SYS_WIN32 | ||
| 60 | #include <stdlib.h> | ||
| 61 | #endif | ||
| 62 | |||
| 63 | |||
| 64 | #undef c2l | 59 | #undef c2l |
| 65 | #define c2l(c,l) (l =((unsigned long)(*((c)++))) , \ | 60 | #define c2l(c,l) (l =((unsigned long)(*((c)++))) , \ |
| 66 | l|=((unsigned long)(*((c)++)))<< 8L, \ | 61 | l|=((unsigned long)(*((c)++)))<< 8L, \ |
diff --git a/src/lib/libssl/src/crypto/des/enc_read.c b/src/lib/libssl/src/crypto/des/enc_read.c index 23ad458dcf..e1ac04c5b3 100644 --- a/src/lib/libssl/src/crypto/des/enc_read.c +++ b/src/lib/libssl/src/crypto/des/enc_read.c | |||
| @@ -150,11 +150,7 @@ int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched, | |||
| 150 | /* first - get the length */ | 150 | /* first - get the length */ |
| 151 | while (net_num < HDRSIZE) | 151 | while (net_num < HDRSIZE) |
| 152 | { | 152 | { |
| 153 | #ifndef OPENSSL_SYS_WIN32 | ||
| 154 | i=read(fd,(void *)&(net[net_num]),HDRSIZE-net_num); | 153 | i=read(fd,(void *)&(net[net_num]),HDRSIZE-net_num); |
| 155 | #else | ||
| 156 | i=_read(fd,(void *)&(net[net_num]),HDRSIZE-net_num); | ||
| 157 | #endif | ||
| 158 | #ifdef EINTR | 154 | #ifdef EINTR |
| 159 | if ((i == -1) && (errno == EINTR)) continue; | 155 | if ((i == -1) && (errno == EINTR)) continue; |
| 160 | #endif | 156 | #endif |
| @@ -176,11 +172,7 @@ int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched, | |||
| 176 | net_num=0; | 172 | net_num=0; |
| 177 | while (net_num < rnum) | 173 | while (net_num < rnum) |
| 178 | { | 174 | { |
| 179 | #ifndef OPENSSL_SYS_WIN32 | ||
| 180 | i=read(fd,(void *)&(net[net_num]),rnum-net_num); | 175 | i=read(fd,(void *)&(net[net_num]),rnum-net_num); |
| 181 | #else | ||
| 182 | i=_read(fd,(void *)&(net[net_num]),rnum-net_num); | ||
| 183 | #endif | ||
| 184 | #ifdef EINTR | 176 | #ifdef EINTR |
| 185 | if ((i == -1) && (errno == EINTR)) continue; | 177 | if ((i == -1) && (errno == EINTR)) continue; |
| 186 | #endif | 178 | #endif |
diff --git a/src/lib/libssl/src/crypto/des/enc_writ.c b/src/lib/libssl/src/crypto/des/enc_writ.c index 8f6b033c87..18562310ee 100644 --- a/src/lib/libssl/src/crypto/des/enc_writ.c +++ b/src/lib/libssl/src/crypto/des/enc_writ.c | |||
| @@ -156,11 +156,7 @@ int DES_enc_write(int fd, const void *_buf, int len, | |||
| 156 | { | 156 | { |
| 157 | /* eay 26/08/92 I was not doing writing from where we | 157 | /* eay 26/08/92 I was not doing writing from where we |
| 158 | * got up to. */ | 158 | * got up to. */ |
| 159 | #ifndef _WIN32 | ||
| 160 | i=write(fd,(void *)&(outbuf[j]),outnum-j); | 159 | i=write(fd,(void *)&(outbuf[j]),outnum-j); |
| 161 | #else | ||
| 162 | i=_write(fd,(void *)&(outbuf[j]),outnum-j); | ||
| 163 | #endif | ||
| 164 | if (i == -1) | 160 | if (i == -1) |
| 165 | { | 161 | { |
| 166 | #ifdef EINTR | 162 | #ifdef EINTR |
diff --git a/src/lib/libssl/src/crypto/engine/eng_aesni.c b/src/lib/libssl/src/crypto/engine/eng_aesni.c index 5fdb33bfde..d547d7f465 100644 --- a/src/lib/libssl/src/crypto/engine/eng_aesni.c +++ b/src/lib/libssl/src/crypto/engine/eng_aesni.c | |||
| @@ -309,11 +309,7 @@ static void aesni_ofb128_encrypt(const unsigned char *in, unsigned char *out, | |||
| 309 | } | 309 | } |
| 310 | /* ===== Engine "management" functions ===== */ | 310 | /* ===== Engine "management" functions ===== */ |
| 311 | 311 | ||
| 312 | #if defined(_WIN32) | ||
| 313 | typedef unsigned __int64 IA32CAP; | ||
| 314 | #else | ||
| 315 | typedef unsigned long long IA32CAP; | 312 | typedef unsigned long long IA32CAP; |
| 316 | #endif | ||
| 317 | 313 | ||
| 318 | /* Prepare the ENGINE structure for registration */ | 314 | /* Prepare the ENGINE structure for registration */ |
| 319 | static int | 315 | static int |
diff --git a/src/lib/libssl/src/crypto/engine/eng_padlock.c b/src/lib/libssl/src/crypto/engine/eng_padlock.c index c27181ba75..5a80b2b16d 100644 --- a/src/lib/libssl/src/crypto/engine/eng_padlock.c +++ b/src/lib/libssl/src/crypto/engine/eng_padlock.c | |||
| @@ -129,12 +129,7 @@ void ENGINE_load_padlock (void) | |||
| 129 | /* We do these includes here to avoid header problems on platforms that | 129 | /* We do these includes here to avoid header problems on platforms that |
| 130 | do not have the VIA padlock anyway... */ | 130 | do not have the VIA padlock anyway... */ |
| 131 | #include <stdlib.h> | 131 | #include <stdlib.h> |
| 132 | #ifdef _WIN32 | 132 | #if defined(__GNUC__) |
| 133 | # include <malloc.h> | ||
| 134 | # ifndef alloca | ||
| 135 | # define alloca _alloca | ||
| 136 | # endif | ||
| 137 | #elif defined(__GNUC__) | ||
| 138 | # ifndef alloca | 133 | # ifndef alloca |
| 139 | # define alloca(s) __builtin_alloca(s) | 134 | # define alloca(s) __builtin_alloca(s) |
| 140 | # endif | 135 | # endif |
diff --git a/src/lib/libssl/src/crypto/engine/eng_rsax.c b/src/lib/libssl/src/crypto/engine/eng_rsax.c index c0f6851601..1b15b6f1a3 100644 --- a/src/lib/libssl/src/crypto/engine/eng_rsax.c +++ b/src/lib/libssl/src/crypto/engine/eng_rsax.c | |||
| @@ -217,11 +217,7 @@ static int e_rsax_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)(void)) | |||
| 217 | 217 | ||
| 218 | #ifndef OPENSSL_NO_RSA | 218 | #ifndef OPENSSL_NO_RSA |
| 219 | 219 | ||
| 220 | #ifdef _WIN32 | ||
| 221 | typedef unsigned __int64 UINT64; | ||
| 222 | #else | ||
| 223 | typedef unsigned long long UINT64; | 220 | typedef unsigned long long UINT64; |
| 224 | #endif | ||
| 225 | typedef unsigned short UINT16; | 221 | typedef unsigned short UINT16; |
| 226 | 222 | ||
| 227 | /* Table t is interleaved in the following manner: | 223 | /* Table t is interleaved in the following manner: |
diff --git a/src/lib/libssl/src/crypto/modes/modes_lcl.h b/src/lib/libssl/src/crypto/modes/modes_lcl.h index 2fc8138273..68c0e355ad 100644 --- a/src/lib/libssl/src/crypto/modes/modes_lcl.h +++ b/src/lib/libssl/src/crypto/modes/modes_lcl.h | |||
| @@ -9,11 +9,7 @@ | |||
| 9 | #include <machine/endian.h> | 9 | #include <machine/endian.h> |
| 10 | 10 | ||
| 11 | 11 | ||
| 12 | #if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__) | 12 | #if defined(_LP64) |
| 13 | typedef __int64 i64; | ||
| 14 | typedef unsigned __int64 u64; | ||
| 15 | #define U64(C) C##UI64 | ||
| 16 | #elif defined(__arch64__) | ||
| 17 | typedef long i64; | 13 | typedef long i64; |
| 18 | typedef unsigned long u64; | 14 | typedef unsigned long u64; |
| 19 | #define U64(C) C##UL | 15 | #define U64(C) C##UL |
diff --git a/src/lib/libssl/src/crypto/sha/sha.h b/src/lib/libssl/src/crypto/sha/sha.h index 435352c208..c0c3c16c08 100644 --- a/src/lib/libssl/src/crypto/sha/sha.h +++ b/src/lib/libssl/src/crypto/sha/sha.h | |||
| @@ -154,10 +154,7 @@ void SHA256_Transform(SHA256_CTX *c, const unsigned char *data); | |||
| 154 | #define SHA512_CBLOCK (SHA_LBLOCK*8) /* SHA-512 treats input data as a | 154 | #define SHA512_CBLOCK (SHA_LBLOCK*8) /* SHA-512 treats input data as a |
| 155 | * contiguous array of 64 bit | 155 | * contiguous array of 64 bit |
| 156 | * wide big-endian values. */ | 156 | * wide big-endian values. */ |
| 157 | #if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__) | 157 | #if defined(_LP64) |
| 158 | #define SHA_LONG64 unsigned __int64 | ||
| 159 | #define U64(C) C##UI64 | ||
| 160 | #elif defined(__arch64__) | ||
| 161 | #define SHA_LONG64 unsigned long | 158 | #define SHA_LONG64 unsigned long |
| 162 | #define U64(C) C##UL | 159 | #define U64(C) C##UL |
| 163 | #else | 160 | #else |
diff --git a/src/lib/libssl/src/crypto/srp/srp_lib.c b/src/lib/libssl/src/crypto/srp/srp_lib.c index 8cc94f51db..a3a67eda2e 100644 --- a/src/lib/libssl/src/crypto/srp/srp_lib.c +++ b/src/lib/libssl/src/crypto/srp/srp_lib.c | |||
| @@ -63,9 +63,7 @@ | |||
| 63 | #include <openssl/evp.h> | 63 | #include <openssl/evp.h> |
| 64 | 64 | ||
| 65 | #if (BN_BYTES == 8) | 65 | #if (BN_BYTES == 8) |
| 66 | # if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__) | 66 | # if defined(_LP64) |
| 67 | # define bn_pack4(a1,a2,a3,a4) ((a1##UI64<<48)|(a2##UI64<<32)|(a3##UI64<<16)|a4##UI64) | ||
| 68 | # elif defined(__arch64__) | ||
| 69 | # define bn_pack4(a1,a2,a3,a4) ((a1##UL<<48)|(a2##UL<<32)|(a3##UL<<16)|a4##UL) | 67 | # define bn_pack4(a1,a2,a3,a4) ((a1##UL<<48)|(a2##UL<<32)|(a3##UL<<16)|a4##UL) |
| 70 | # else | 68 | # else |
| 71 | # define bn_pack4(a1,a2,a3,a4) ((a1##ULL<<48)|(a2##ULL<<32)|(a3##ULL<<16)|a4##ULL) | 69 | # define bn_pack4(a1,a2,a3,a4) ((a1##ULL<<48)|(a2##ULL<<32)|(a3##ULL<<16)|a4##ULL) |
diff --git a/src/lib/libssl/src/crypto/ts/ts.h b/src/lib/libssl/src/crypto/ts/ts.h index 3c5ab727db..085e062b96 100644 --- a/src/lib/libssl/src/crypto/ts/ts.h +++ b/src/lib/libssl/src/crypto/ts/ts.h | |||
| @@ -89,11 +89,6 @@ | |||
| 89 | extern "C" { | 89 | extern "C" { |
| 90 | #endif | 90 | #endif |
| 91 | 91 | ||
| 92 | #ifdef WIN32 | ||
| 93 | /* Under Win32 this is defined in wincrypt.h */ | ||
| 94 | #undef X509_NAME | ||
| 95 | #endif | ||
| 96 | |||
| 97 | #include <openssl/x509.h> | 92 | #include <openssl/x509.h> |
| 98 | #include <openssl/x509v3.h> | 93 | #include <openssl/x509v3.h> |
| 99 | 94 | ||
diff --git a/src/lib/libssl/src/crypto/whrlpool/wp_block.c b/src/lib/libssl/src/crypto/whrlpool/wp_block.c index 11164e50f5..9c194f968b 100644 --- a/src/lib/libssl/src/crypto/whrlpool/wp_block.c +++ b/src/lib/libssl/src/crypto/whrlpool/wp_block.c | |||
| @@ -40,9 +40,7 @@ | |||
| 40 | #include <machine/endian.h> | 40 | #include <machine/endian.h> |
| 41 | 41 | ||
| 42 | typedef unsigned char u8; | 42 | typedef unsigned char u8; |
| 43 | #if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32) | 43 | #if defined(_LP64) |
| 44 | typedef unsigned __int64 u64; | ||
| 45 | #elif defined(__arch64__) | ||
| 46 | typedef unsigned long u64; | 44 | typedef unsigned long u64; |
| 47 | #else | 45 | #else |
| 48 | typedef unsigned long long u64; | 46 | typedef unsigned long long u64; |
