25 #ifndef MBEDTLS_PLATFORM_UTIL_H 26 #define MBEDTLS_PLATFORM_UTIL_H 28 #if !defined(MBEDTLS_CONFIG_FILE) 31 #include MBEDTLS_CONFIG_FILE 35 #if defined(MBEDTLS_HAVE_TIME_DATE) 44 #if defined(MBEDTLS_CHECK_PARAMS) 46 #if defined(MBEDTLS_PARAM_FAILED) 52 #define MBEDTLS_PARAM_FAILED_ALT 54 #define MBEDTLS_PARAM_FAILED( cond ) \ 55 mbedtls_param_failed( #cond, __FILE__, __LINE__ ) 72 void mbedtls_param_failed(
const char *failure_condition,
78 #define MBEDTLS_INTERNAL_VALIDATE_RET( cond, ret ) \ 82 MBEDTLS_PARAM_FAILED( cond ); \ 88 #define MBEDTLS_INTERNAL_VALIDATE( cond ) \ 92 MBEDTLS_PARAM_FAILED( cond ); \ 100 #define MBEDTLS_INTERNAL_VALIDATE_RET( cond, ret ) do { } while( 0 ) 101 #define MBEDTLS_INTERNAL_VALIDATE( cond ) do { } while( 0 ) 106 #if !defined(MBEDTLS_DEPRECATED_REMOVED) 107 #if defined(MBEDTLS_DEPRECATED_WARNING) 112 #define MBEDTLS_DEPRECATED __attribute__((deprecated)) 114 #define MBEDTLS_DEPRECATED_STRING_CONSTANT( VAL ) \ 115 ( (mbedtls_deprecated_string_constant_t) ( VAL ) ) 117 #define MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( VAL ) \ 118 ( (mbedtls_deprecated_numeric_constant_t) ( VAL ) ) 119 #undef MBEDTLS_DEPRECATED 121 #define MBEDTLS_DEPRECATED_STRING_CONSTANT( VAL ) VAL 122 #define MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( VAL ) VAL 150 #if defined(MBEDTLS_HAVE_TIME_DATE) #define MBEDTLS_DEPRECATED
Definition: aes.h:625
Configuration options (set of defines)