瀏覽代碼

e_aes_cbc_hmac_sha*.c: address linker warning about OPENSSL_ia32cap_P size mismatch.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Andy Polyakov 9 年之前
父節點
當前提交
f0fa5c8306
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      crypto/evp/e_aes_cbc_hmac_sha1.c
  2. 1 1
      crypto/evp/e_aes_cbc_hmac_sha256.c

+ 1 - 1
crypto/evp/e_aes_cbc_hmac_sha1.c

@@ -94,7 +94,7 @@ typedef struct {
         defined(_M_AMD64)       || defined(_M_X64)      || \
         defined(__INTEL__)      )
 
-extern unsigned int OPENSSL_ia32cap_P[3];
+extern unsigned int OPENSSL_ia32cap_P[];
 #  define AESNI_CAPABLE   (1<<(57-32))
 
 int aesni_set_encrypt_key(const unsigned char *userKey, int bits,

+ 1 - 1
crypto/evp/e_aes_cbc_hmac_sha256.c

@@ -94,7 +94,7 @@ typedef struct {
         defined(_M_AMD64)       || defined(_M_X64)      || \
         defined(__INTEL__)      )
 
-extern unsigned int OPENSSL_ia32cap_P[3];
+extern unsigned int OPENSSL_ia32cap_P[];
 #  define AESNI_CAPABLE   (1<<(57-32))
 
 int aesni_set_encrypt_key(const unsigned char *userKey, int bits,