diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libssl/ciphers/cipherstest.c | 6 | ||||
| -rw-r--r-- | src/regress/lib/libssl/client/clienttest.c | 8 | ||||
| -rw-r--r-- | src/regress/lib/libssl/unit/ssl_get_shared_ciphers.c | 8 |
3 files changed, 5 insertions, 17 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 |
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 |
diff --git a/src/regress/lib/libssl/unit/ssl_get_shared_ciphers.c b/src/regress/lib/libssl/unit/ssl_get_shared_ciphers.c index ff966900aa..e26f614e53 100644 --- a/src/regress/lib/libssl/unit/ssl_get_shared_ciphers.c +++ b/src/regress/lib/libssl/unit/ssl_get_shared_ciphers.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ssl_get_shared_ciphers.c,v 1.12 2024/03/20 10:38:05 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_get_shared_ciphers.c,v 1.13 2024/08/31 12:47:24 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2021 Theo Buehler <tb@openbsd.org> | 3 | * Copyright (c) 2021 Theo Buehler <tb@openbsd.org> |
| 4 | * | 4 | * |
| @@ -379,11 +379,7 @@ shutdown_peers(SSL *client_ssl, SSL *server_ssl, const char *description) | |||
| 379 | static inline int | 379 | static inline int |
| 380 | ssl_aes_is_accelerated(void) | 380 | ssl_aes_is_accelerated(void) |
| 381 | { | 381 | { |
| 382 | #if defined(__i386__) || defined(__x86_64__) | 382 | return (OPENSSL_cpu_caps() & CRYPTO_CPU_CAPS_ACCELERATED_AES) != 0; |
| 383 | return ((OPENSSL_cpu_caps() & (1ULL << 57)) != 0); | ||
| 384 | #else | ||
| 385 | return (0); | ||
| 386 | #endif | ||
| 387 | } | 383 | } |
| 388 | 384 | ||
| 389 | static int | 385 | static int |
