50#ifndef MBEDTLS_PLATFORM_UTIL_H
51#define MBEDTLS_PLATFORM_UTIL_H
53#if !defined(MBEDTLS_CONFIG_FILE)
56#include MBEDTLS_CONFIG_FILE
60#if defined(MBEDTLS_HAVE_TIME_DATE)
69#if defined(MBEDTLS_CHECK_PARAMS)
71#if defined(MBEDTLS_CHECK_PARAMS_ASSERT)
77#if defined(MBEDTLS_PARAM_FAILED)
83#define MBEDTLS_PARAM_FAILED_ALT
85#elif defined(MBEDTLS_CHECK_PARAMS_ASSERT)
86#define MBEDTLS_PARAM_FAILED( cond ) assert( cond )
87#define MBEDTLS_PARAM_FAILED_ALT
90#define MBEDTLS_PARAM_FAILED( cond ) \
91 mbedtls_param_failed( #cond, __FILE__, __LINE__ )
108void mbedtls_param_failed(
const char *failure_condition,
114#define MBEDTLS_INTERNAL_VALIDATE_RET( cond, ret ) \
118 MBEDTLS_PARAM_FAILED( cond ); \
124#define MBEDTLS_INTERNAL_VALIDATE( cond ) \
128 MBEDTLS_PARAM_FAILED( cond ); \
136#define MBEDTLS_INTERNAL_VALIDATE_RET( cond, ret ) do { } while( 0 )
137#define MBEDTLS_INTERNAL_VALIDATE( cond ) do { } while( 0 )
142#if !defined(MBEDTLS_DEPRECATED_REMOVED)
143#if defined(MBEDTLS_DEPRECATED_WARNING)
148#define MBEDTLS_DEPRECATED __attribute__((deprecated))
150#define MBEDTLS_DEPRECATED_STRING_CONSTANT( VAL ) \
151 ( (mbedtls_deprecated_string_constant_t) ( VAL ) )
153#define MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( VAL ) \
154 ( (mbedtls_deprecated_numeric_constant_t) ( VAL ) )
155#undef MBEDTLS_DEPRECATED
157#define MBEDTLS_DEPRECATED_STRING_CONSTANT( VAL ) VAL
158#define MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( VAL ) VAL
186#if defined(MBEDTLS_HAVE_TIME_DATE)
#define MBEDTLS_DEPRECATED
GLenum GLuint GLenum GLsizei const GLchar * buf