Add ifdef for selftest in header file

See https://github.com/ARMmbed/mbedtls/pull/975
This commit is contained in:
Manuel Pégourié-Gonnard 2018-05-24 13:51:05 +02:00
parent fb78c90138
commit c22e61a081
3 changed files with 6 additions and 0 deletions

View file

@ -311,6 +311,7 @@ int mbedtls_chachapoly_auth_decrypt( mbedtls_chachapoly_context *ctx,
const unsigned char *input,
unsigned char *output );
#if defined(MBEDTLS_SELF_TEST)
/**
* \brief The ChaCha20-Poly1305 checkup routine.
*
@ -318,6 +319,7 @@ int mbedtls_chachapoly_auth_decrypt( mbedtls_chachapoly_context *ctx,
* \return \c 1 on failure.
*/
int mbedtls_chachapoly_self_test( int verbose );
#endif /* MBEDTLS_SELF_TEST */
#ifdef __cplusplus
}