23#ifndef MBEDTLS_PLATFORM_UTIL_H
24#define MBEDTLS_PLATFORM_UTIL_H
26#if !defined(MBEDTLS_CONFIG_FILE)
29#include MBEDTLS_CONFIG_FILE
38#if defined(MBEDTLS_HAVE_TIME_DATE)
47#if defined(MBEDTLS_CHECK_PARAMS)
49#if defined(MBEDTLS_CHECK_PARAMS_ASSERT)
55#if defined(MBEDTLS_PARAM_FAILED)
61#define MBEDTLS_PARAM_FAILED_ALT
63#elif defined(MBEDTLS_CHECK_PARAMS_ASSERT)
64#define MBEDTLS_PARAM_FAILED( cond ) assert( cond )
65#define MBEDTLS_PARAM_FAILED_ALT
68#define MBEDTLS_PARAM_FAILED( cond ) \
69 mbedtls_param_failed( #cond, __FILE__, __LINE__ )
86void mbedtls_param_failed(
const char *failure_condition,
92#define MBEDTLS_INTERNAL_VALIDATE_RET( cond, ret ) \
96 MBEDTLS_PARAM_FAILED( cond ); \
102#define MBEDTLS_INTERNAL_VALIDATE( cond ) \
106 MBEDTLS_PARAM_FAILED( cond ); \
114#define MBEDTLS_INTERNAL_VALIDATE_RET( cond, ret ) do { } while( 0 )
115#define MBEDTLS_INTERNAL_VALIDATE( cond ) do { } while( 0 )
120#if !defined(MBEDTLS_DEPRECATED_REMOVED)
121#if defined(MBEDTLS_DEPRECATED_WARNING)
126#define MBEDTLS_DEPRECATED __attribute__((deprecated))
127MBEDTLS_DEPRECATED
typedef char const * mbedtls_deprecated_string_constant_t;
128#define MBEDTLS_DEPRECATED_STRING_CONSTANT( VAL ) \
129 ( (mbedtls_deprecated_string_constant_t) ( VAL ) )
130MBEDTLS_DEPRECATED
typedef int mbedtls_deprecated_numeric_constant_t;
131#define MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( VAL ) \
132 ( (mbedtls_deprecated_numeric_constant_t) ( VAL ) )
133#undef MBEDTLS_DEPRECATED
135#define MBEDTLS_DEPRECATED_STRING_CONSTANT( VAL ) VAL
136#define MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( VAL ) VAL
164#if defined(MBEDTLS_HAVE_TIME_DATE)
191struct tm *mbedtls_platform_gmtime_r(
const mbedtls_time_t *tt,
Configuration options (set of defines)