mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 11:55:42 +01:00
Remove the library provided function of MBEDTLS_PARAM_FAILED
The function called through the macro MBEDTLS_PARAM_FAILED() must be supplied by users and makes no sense as a library function, apart from debug and test.
This commit is contained in:
parent
249b3d6efe
commit
4c37db6d87
@ -41,8 +41,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if defined( MBEDTLS_CHECK_PARAMS ) && defined(MBEDTLS_PLATFORM_C) && \
|
||||
!defined(MBEDTLS_PARAM_FAILED)
|
||||
#if defined( MBEDTLS_CHECK_PARAMS ) && !defined(MBEDTLS_PARAM_FAILED)
|
||||
#define MBEDTLS_PARAM_FAILED( cond, file, line ) \
|
||||
mbedtls_param_failed( cond, file, line )
|
||||
|
||||
@ -67,7 +66,7 @@ extern "C" {
|
||||
*/
|
||||
void mbedtls_param_failed( char* failure_condition, char* file, int line );
|
||||
|
||||
#endif /* MBEDTLS_CHECK_PARAMS && MBEDTLS_PLATFORM_C && !MBEDTLS_PARAM_FAILED */
|
||||
#endif /* MBEDTLS_CHECK_PARAMS && !MBEDTLS_PARAM_FAILED */
|
||||
|
||||
/**
|
||||
* \brief Securely zeroize a buffer
|
||||
|
@ -134,11 +134,3 @@ struct tm *mbedtls_platform_gmtime_r( const mbedtls_time_t *tt,
|
||||
#endif /* _WIN32 && !EFIX64 && !EFI32 */
|
||||
}
|
||||
#endif /* MBEDTLS_HAVE_TIME_DATE && MBEDTLS_PLATFORM_GMTIME_R_ALT */
|
||||
|
||||
#if defined( MBEDTLS_CHECK_PARAMS ) && defined(MBEDTLS_PLATFORM_C) && \
|
||||
defined(MBEDTLS_DEBUG_INVALID_PARAMS)
|
||||
void mbedtls_param_failed( char* failure_condition )
|
||||
{
|
||||
mbedtls_printf("%s:%i: Input param failed - %s\n", __FILE__, __LINE__, failure_condition );
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user