mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 08:16:33 +01:00
Define timing_selftest() even with TIMING_ALT
This commit is contained in:
parent
a27b1979dc
commit
8903fe0fd3
2 changed files with 18 additions and 6 deletions
|
|
@ -79,6 +79,18 @@ void mbedtls_set_alarm( int seconds );
|
|||
*/
|
||||
void mbedtls_timing_m_sleep( int milliseconds );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#else /* MBEDTLS_TIMING_ALT */
|
||||
#include "timing_alt.h"
|
||||
#endif /* MBEDTLS_TIMING_ALT */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if defined(MBEDTLS_SELF_TEST)
|
||||
/**
|
||||
* \brief Checkup routine
|
||||
|
|
@ -92,8 +104,4 @@ int mbedtls_timing_self_test( int verbose );
|
|||
}
|
||||
#endif
|
||||
|
||||
#else /* MBEDTLS_TIMING_ALT */
|
||||
#include "timing_alt.h"
|
||||
#endif /* MBEDTLS_TIMING_ALT */
|
||||
|
||||
#endif /* timing.h */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue