diff options
| author | jsing <> | 2024-08-31 12:47:24 +0000 |
|---|---|---|
| committer | jsing <> | 2024-08-31 12:47:24 +0000 |
| commit | bbff3f79e48b648b440e142bdf24e3eb6c6fe707 (patch) | |
| tree | 600a9f84c8dfc1e3f61da1af81e95b2766928dd3 /src/regress/lib/libssl/ciphers/cipherstest.c | |
| parent | 55830d0a034a2c58c258e7b84cf9109a49f3b3e7 (diff) | |
| download | openbsd-bbff3f79e48b648b440e142bdf24e3eb6c6fe707.tar.gz openbsd-bbff3f79e48b648b440e142bdf24e3eb6c6fe707.tar.bz2 openbsd-bbff3f79e48b648b440e142bdf24e3eb6c6fe707.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.c | 6 |
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); | |||
| 30 | static inline int | 30 | static inline int |
| 31 | ssl_aes_is_accelerated(void) | 31 | ssl_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 | ||
| 40 | static int | 36 | static int |
