summaryrefslogtreecommitdiff
path: root/include/mbedtls/sha256.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbedtls/sha256.h')
-rw-r--r--include/mbedtls/sha256.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mbedtls/sha256.h b/include/mbedtls/sha256.h
index adf31a82..de19dc24 100644
--- a/include/mbedtls/sha256.h
+++ b/include/mbedtls/sha256.h
@@ -257,6 +257,8 @@ MBEDTLS_DEPRECATED void mbedtls_sha256( const unsigned char *input,
#undef MBEDTLS_DEPRECATED
#endif /* !MBEDTLS_DEPRECATED_REMOVED */
+#if defined(MBEDTLS_SELF_TEST)
+
/**
* \brief The SHA-224 and SHA-256 checkup routine.
*
@@ -265,6 +267,8 @@ MBEDTLS_DEPRECATED void mbedtls_sha256( const unsigned char *input,
*/
int mbedtls_sha256_self_test( int verbose );
+#endif /* MBEDTLS_SELF_TEST */
+
#ifdef __cplusplus
}
#endif