Move the description of MBEDTLS_TEST_DEFINES_ZEROIZE to before its use
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
parent
7eced7d1d2
commit
d9572c0270
1 changed files with 5 additions and 9 deletions
|
@ -145,6 +145,11 @@ MBEDTLS_DEPRECATED typedef int mbedtls_deprecated_numeric_constant_t;
|
|||
#define MBEDTLS_IGNORE_RETURN(result) ((void) !(result))
|
||||
#endif
|
||||
|
||||
/* If the following macro is defined, the library is being built by the test
|
||||
* framework, and the framework is going to provide a replacement
|
||||
* mbedtls_platform_zeroize() using a preprocessor macro, so the function
|
||||
* declaration should be omitted. */
|
||||
#if !defined(MBEDTLS_TEST_DEFINES_ZEROIZE) //no-check-names
|
||||
/**
|
||||
* \brief Securely zeroize a buffer
|
||||
*
|
||||
|
@ -167,18 +172,9 @@ MBEDTLS_DEPRECATED typedef int mbedtls_deprecated_numeric_constant_t;
|
|||
* \param len Length of the buffer in bytes
|
||||
*
|
||||
*/
|
||||
#if !defined(MBEDTLS_TEST_DEFINES_ZEROIZE)
|
||||
void mbedtls_platform_zeroize(void *buf, size_t len);
|
||||
#endif
|
||||
|
||||
/* MBEDTLS_TEST_DEFINES_ZEROIZE
|
||||
*
|
||||
* Indicates that the library is being built by the test framework, and the
|
||||
* framework is going to provide a replacement mbedtls_platform_zeroize()
|
||||
* using a pre-processor macro, so the function declaration should be omitted.
|
||||
*/
|
||||
//#define MBEDTLS_TEST_DEFINES_ZEROIZE
|
||||
|
||||
#if defined(MBEDTLS_HAVE_TIME_DATE)
|
||||
/**
|
||||
* \brief Platform-specific implementation of gmtime_r()
|
||||
|
|
Loading…
Reference in a new issue