summaryrefslogtreecommitdiff
path: root/src/regress/lib/libssl/ciphers/cipherstest.c
diff options
context:
space:
mode:
authorjsing <>2024-08-31 12:47:24 +0000
committerjsing <>2024-08-31 12:47:24 +0000
commit357d0eb629b6a1fdf3f95c86b815313d192ceb93 (patch)
tree600a9f84c8dfc1e3f61da1af81e95b2766928dd3 /src/regress/lib/libssl/ciphers/cipherstest.c
parente93803270c64331d139d546753e2d957d3e5c1c4 (diff)
downloadopenbsd-357d0eb629b6a1fdf3f95c86b815313d192ceb93.tar.gz
openbsd-357d0eb629b6a1fdf3f95c86b815313d192ceb93.tar.bz2
openbsd-357d0eb629b6a1fdf3f95c86b815313d192ceb93.zip
Update for OPENSSL_cpu_caps() now being machine independent.
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