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/client/clienttest.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/client/clienttest.c')
-rw-r--r-- | src/regress/lib/libssl/client/clienttest.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/regress/lib/libssl/client/clienttest.c b/src/regress/lib/libssl/client/clienttest.c index 0c526f38f8..7e96944fce 100644 --- a/src/regress/lib/libssl/client/clienttest.c +++ b/src/regress/lib/libssl/client/clienttest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: clienttest.c,v 1.44 2024/07/20 18:37:38 tb Exp $ */ | 1 | /* $OpenBSD: clienttest.c,v 1.45 2024/08/31 12:47:24 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -515,11 +515,7 @@ hexdump(const uint8_t *buf, size_t len, const uint8_t *compare) | |||
515 | static inline int | 515 | static inline int |
516 | ssl_aes_is_accelerated(void) | 516 | ssl_aes_is_accelerated(void) |
517 | { | 517 | { |
518 | #if defined(__i386__) || defined(__x86_64__) | 518 | return (OPENSSL_cpu_caps() & CRYPTO_CPU_CAPS_ACCELERATED_AES) != 0; |
519 | return ((OPENSSL_cpu_caps() & (1ULL << 57)) != 0); | ||
520 | #else | ||
521 | return (0); | ||
522 | #endif | ||
523 | } | 519 | } |
524 | 520 | ||
525 | static int | 521 | static int |