提交 fe9a5107 编写于 作者: A Andy Polyakov

Various mingw64 fixes.

上级 afa4b386
...@@ -176,7 +176,7 @@ static int aesni_ciphers(ENGINE *e, const EVP_CIPHER **cipher, ...@@ -176,7 +176,7 @@ static int aesni_ciphers(ENGINE *e, const EVP_CIPHER **cipher,
#define AESNI_MIN_ALIGN 16 #define AESNI_MIN_ALIGN 16
#define AESNI_ALIGN(x) \ #define AESNI_ALIGN(x) \
((void *)(((unsigned long)(x)+AESNI_MIN_ALIGN-1)&~(AESNI_MIN_ALIGN-1))) ((void *)(((size_t)(x)+AESNI_MIN_ALIGN-1)&~(AESNI_MIN_ALIGN-1)))
/* Engine names */ /* Engine names */
static const char aesni_id[] = "aesni", static const char aesni_id[] = "aesni",
......
...@@ -119,6 +119,7 @@ $out="%rcx"; # arg4 ...@@ -119,6 +119,7 @@ $out="%rcx"; # arg4
{ {
$code=<<___; $code=<<___;
.text .text
.extern OPENSSL_ia32cap_P
.globl RC4 .globl RC4
.type RC4,\@function,4 .type RC4,\@function,4
...@@ -425,7 +426,6 @@ $idx="%r8"; ...@@ -425,7 +426,6 @@ $idx="%r8";
$ido="%r9"; $ido="%r9";
$code.=<<___; $code.=<<___;
.extern OPENSSL_ia32cap_P
.globl RC4_set_key .globl RC4_set_key
.type RC4_set_key,\@function,3 .type RC4_set_key,\@function,3
.align 16 .align 16
......
...@@ -63,13 +63,17 @@ ...@@ -63,13 +63,17 @@
#include <openssl/evp.h> #include <openssl/evp.h>
#if (BN_BYTES == 8) #if (BN_BYTES == 8)
#define bn_pack4(a1,a2,a3,a4) 0x##a1##a2##a3##a4##ul # if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__)
#endif # define bn_pack4(a1,a2,a3,a4) 0x##a1##a2##a3##a4##UI64
#if (BN_BYTES == 4) # elif defined(__arch64__)
#define bn_pack4(a1,a2,a3,a4) 0x##a3##a4##ul, 0x##a1##a2##ul # define bn_pack4(a1,a2,a3,a4) 0x##a1##a2##a3##a4##UL
#endif # else
#if (BN_BYTES == 2) # define bn_pack4(a1,a2,a3,a4) 0x##a1##a2##a3##a4##ULL
#define bn_pack4(a1,a2,a3,a4) 0x##a4##u,0x##a3##u,0x##a2##u,0x##a1##u # endif
#elif (BN_BYTES == 4)
# define bn_pack4(a1,a2,a3,a4) 0x##a3##a4##UL, 0x##a1##a2##UL
#else
# error "unsupported BN_BYTES"
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册