summaryrefslogtreecommitdiff
path: root/src/regress/lib/libssl/ciphers/cipherstest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regress/lib/libssl/ciphers/cipherstest.c')
-rw-r--r--src/regress/lib/libssl/ciphers/cipherstest.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/regress/lib/libssl/ciphers/cipherstest.c b/src/regress/lib/libssl/ciphers/cipherstest.c
index 649eaf7200..1df335f9f2 100644
--- a/src/regress/lib/libssl/ciphers/cipherstest.c
+++ b/src/regress/lib/libssl/ciphers/cipherstest.c
@@ -30,11 +30,7 @@ int ssl_parse_ciphersuites(STACK_OF(SSL_CIPHER) **out_ciphers, const char *str);
30static inline int 30static inline int
31ssl_aes_is_accelerated(void) 31ssl_aes_is_accelerated(void)
32{ 32{
33#if defined(__i386__) || defined(__x86_64__) 33 return (OPENSSL_cpu_caps() & CRYPTO_CPU_CAPS_ACCELERATED_AES) != 0;
34 return ((OPENSSL_cpu_caps() & (1ULL << 57)) != 0);
35#else
36 return (0);
37#endif
38} 34}
39 35
40static int 36static int