mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-10 15:50:47 -04:00
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
7f18f44053
commit
95b5d79cbf
@ -221,6 +221,11 @@ MBEDTLS_DEPRECATED typedef int mbedtls_deprecated_numeric_constant_t;
|
|||||||
#define MBEDTLS_IGNORE_RETURN(result) ((void) !(result))
|
#define MBEDTLS_IGNORE_RETURN(result) ((void) !(result))
|
||||||
#endif
|
#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
|
* \brief Securely zeroize a buffer
|
||||||
*
|
*
|
||||||
@ -243,18 +248,9 @@ MBEDTLS_DEPRECATED typedef int mbedtls_deprecated_numeric_constant_t;
|
|||||||
* \param len Length of the buffer in bytes
|
* \param len Length of the buffer in bytes
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#if !defined(MBEDTLS_TEST_DEFINES_ZEROIZE)
|
|
||||||
void mbedtls_platform_zeroize(void *buf, size_t len);
|
void mbedtls_platform_zeroize(void *buf, size_t len);
|
||||||
#endif
|
#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)
|
#if defined(MBEDTLS_HAVE_TIME_DATE)
|
||||||
/**
|
/**
|
||||||
* \brief Platform-specific implementation of gmtime_r()
|
* \brief Platform-specific implementation of gmtime_r()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user