gcm.c: address linker warning about OPENSSL_ia32cap_P size mismatch.
authorAndy Polyakov <appro@openssl.org>
Mon, 1 Jun 2015 20:51:33 +0000 (22:51 +0200)
committerAndy Polyakov <appro@openssl.org>
Wed, 10 Jun 2015 21:58:07 +0000 (23:58 +0200)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit 75c4827dfe6f52ccd687a283e6108a88ba3b8ec4)

crypto/modes/gcm128.c

index 881b2233d75c8f1c661232eb7939c35754cc2ae9..e299131c1382cedff229ccb5ff2a8d8e2b0e2309 100644 (file)
@@ -694,7 +694,7 @@ static void gcm_gmult_1bit(u64 Xi[2], const u64 H[2])
          defined(_M_IX86)       || defined(_M_AMD64)    || defined(_M_X64))
 #  define GHASH_ASM_X86_OR_64
 #  define GCM_FUNCREF_4BIT
-extern unsigned int OPENSSL_ia32cap_P[2];
+extern unsigned int OPENSSL_ia32cap_P[];
 
 void gcm_init_clmul(u128 Htable[16], const u64 Xi[2]);
 void gcm_gmult_clmul(u64 Xi[2], const u128 Htable[16]);