Skip to content

Commit

Permalink
Define the DIT functions when the build is not DIT-enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
nebeid committed Aug 6, 2024
1 parent cb6f30a commit 0b74ef5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/openssl/crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b74ef5

Please sign in to comment.