1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Define timing_selftest() even with TIMING_ALT

This commit is contained in:
Manuel Pégourié-Gonnard
2015-05-12 19:30:45 +02:00
parent a27b1979dc
commit 8903fe0fd3
2 changed files with 18 additions and 6 deletions

View File

@ -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 */