commit | 470fc935b5f4778529f7f048c5f6812af97acabf | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Thu Mar 27 20:07:08 2014 +0100 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Fri Apr 04 16:33:01 2014 +0200 |
tree | 2b9ef349b721eb25ff284b8abd4936a104c1bad8 | |
parent | 487588d0bf8b450cf7cefd18ef77587d78034512 [diff] [blame] |
Add timing_self_test() with consistency tests
diff --git a/include/polarssl/timing.h b/include/polarssl/timing.h index cb6abe3..09624fc 100644 --- a/include/polarssl/timing.h +++ b/include/polarssl/timing.h
@@ -74,6 +74,15 @@ */ void m_sleep( int milliseconds ); +#if defined(POLARSSL_SELF_TEST) +/** + * \brief Checkup routine + * + * \return 0 if successful, or 1 if a test failed + */ +int timing_self_test( int verbose ); +#endif + #ifdef __cplusplus } #endif