From 24fd8541d47a46052b975db98b465faa7e4d898c Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Sat, 24 Aug 2019 11:28:19 +0200 Subject: Remove extern declarations of OPENSSL_ia32cap_P Use the header file internal/cryptlib.h instead. Remove checks for OPENSSL_NO_ASM and I386_ONLY in cryptlib.c, to match the checks in other places where OPENSSL_ia32cap_P is used and assumed to be initialized. Reviewed-by: Kurt Roeckx (Merged from https://github.com/openssl/openssl/pull/9688) --- crypto/modes/gcm128.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/modes/gcm128.c') diff --git a/crypto/modes/gcm128.c b/crypto/modes/gcm128.c index 371bf7637d..f37653be67 100644 --- a/crypto/modes/gcm128.c +++ b/crypto/modes/gcm128.c @@ -9,6 +9,7 @@ #include #include +#include "internal/cryptlib.h" #include "internal/modes_int.h" #if defined(BSWAP4) && defined(STRICT_ALIGNMENT) @@ -635,7 +636,6 @@ 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[]; void gcm_init_clmul(u128 Htable[16], const u64 Xi[2]); void gcm_gmult_clmul(u64 Xi[2], const u128 Htable[16]); -- cgit v1.2.3