diff options
author | jsing <> | 2024-10-17 14:27:57 +0000 |
---|---|---|
committer | jsing <> | 2024-10-17 14:27:57 +0000 |
commit | 978d3a277baeb25c75e71e4d12342c47d1764205 (patch) | |
tree | 9a374ab05acc812ea22b6eb26d787771e956e515 /src/lib/libcrypto/crypto_internal.h | |
parent | 3f67c2a09f63d9b79af4479ddb350c665f82747f (diff) | |
download | openbsd-978d3a277baeb25c75e71e4d12342c47d1764205.tar.gz openbsd-978d3a277baeb25c75e71e4d12342c47d1764205.tar.bz2 openbsd-978d3a277baeb25c75e71e4d12342c47d1764205.zip |
Provide crypto_cpu_caps_init() as a CPU capability detection entry point.
This can be overridden on a per-architecture basis. The default version
calls OPENSSL_cpuid_setup(), which will be eventually replaced/removed.
ok joshua@ tb@
Diffstat (limited to 'src/lib/libcrypto/crypto_internal.h')
-rw-r--r-- | src/lib/libcrypto/crypto_internal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libcrypto/crypto_internal.h b/src/lib/libcrypto/crypto_internal.h index fc617472ad..2c2e63cc0d 100644 --- a/src/lib/libcrypto/crypto_internal.h +++ b/src/lib/libcrypto/crypto_internal.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: crypto_internal.h,v 1.12 2024/09/06 09:57:32 tb Exp $ */ | 1 | /* $OpenBSD: crypto_internal.h,v 1.13 2024/10/17 14:27:57 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -220,6 +220,8 @@ crypto_ror_u64(uint64_t v, size_t shift) | |||
220 | } | 220 | } |
221 | #endif | 221 | #endif |
222 | 222 | ||
223 | void crypto_cpu_caps_init(void); | ||
224 | |||
223 | uint64_t crypto_cpu_caps_ia32(void); | 225 | uint64_t crypto_cpu_caps_ia32(void); |
224 | 226 | ||
225 | #endif | 227 | #endif |