diff options
author | jsing <> | 2024-10-17 14:27:57 +0000 |
---|---|---|
committer | jsing <> | 2024-10-17 14:27:57 +0000 |
commit | 9b41a36f226fead819f4a72e5bf97ff0cd94daaf (patch) | |
tree | 9a374ab05acc812ea22b6eb26d787771e956e515 /src/lib/libcrypto/crypto_internal.h | |
parent | bab0e6691ffc2d330f183a6278c8fc1da5efa079 (diff) | |
download | openbsd-9b41a36f226fead819f4a72e5bf97ff0cd94daaf.tar.gz openbsd-9b41a36f226fead819f4a72e5bf97ff0cd94daaf.tar.bz2 openbsd-9b41a36f226fead819f4a72e5bf97ff0cd94daaf.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 |