From 0b74ef58c270690370652779626a895c87eada47 Mon Sep 17 00:00:00 2001 From: Nevine Ebeid Date: Tue, 6 Aug 2024 13:09:12 -0400 Subject: [PATCH] Define the DIT functions when the build is not DIT-enabled. --- include/openssl/crypto.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/openssl/crypto.h b/include/openssl/crypto.h index fbe6e21957..d1a44a4684 100644 --- a/include/openssl/crypto.h +++ b/include/openssl/crypto.h @@ -112,6 +112,8 @@ void armv8_restore_dit(volatile uint64_t *original_dit); #else #define SET_DIT_AUTO_DISABLE +OPENSSL_INLINE uint64_t armv8_enable_dit(void) {return 0;} +OPENSSL_INLINE void armv8_restore_dit(uint64_t *original_dit) {} #endif // OPENSSL_AARCH64 && !OPENSSL_WINDOWS && MAKE_DIT_AVAILABLE // FIPS monitoring