mbed TLS v2.7.6
|
The Mbed TLS platform abstraction layer. More...
#include "config.h"
#include "platform_time.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
Go to the source code of this file.
Data Structures | |
struct | mbedtls_platform_context |
The platform context structure. More... | |
Functions | |
int | mbedtls_platform_setup (mbedtls_platform_context *ctx) |
This function performs any platform initialization operations. More... | |
void | mbedtls_platform_teardown (mbedtls_platform_context *ctx) |
This function performs any platform teardown operations. More... | |
The Mbed TLS platform abstraction layer.
Definition in file platform.h.
#define mbedtls_calloc calloc |
Definition at line 131 of file platform.h.
#define mbedtls_exit exit |
Definition at line 236 of file platform.h.
#define MBEDTLS_EXIT_FAILURE MBEDTLS_PLATFORM_STD_EXIT_FAILURE |
Definition at line 249 of file platform.h.
#define MBEDTLS_EXIT_SUCCESS MBEDTLS_PLATFORM_STD_EXIT_SUCCESS |
Definition at line 244 of file platform.h.
#define mbedtls_fprintf fprintf |
Definition at line 155 of file platform.h.
#define mbedtls_free free |
Definition at line 130 of file platform.h.
#define MBEDTLS_PLATFORM_STD_CALLOC calloc |
The default calloc
function to use.
Definition at line 67 of file platform.h.
#define MBEDTLS_PLATFORM_STD_EXIT exit |
The default exit
function to use.
Definition at line 73 of file platform.h.
#define MBEDTLS_PLATFORM_STD_EXIT_FAILURE EXIT_FAILURE |
The default exit value to use.
Definition at line 82 of file platform.h.
#define MBEDTLS_PLATFORM_STD_EXIT_SUCCESS EXIT_SUCCESS |
The default exit value to use.
Definition at line 79 of file platform.h.
#define MBEDTLS_PLATFORM_STD_FPRINTF fprintf |
The default fprintf
function to use.
Definition at line 64 of file platform.h.
#define MBEDTLS_PLATFORM_STD_FREE free |
The default free
function to use.
Definition at line 70 of file platform.h.
#define MBEDTLS_PLATFORM_STD_NV_SEED_FILE "seedfile" |
Definition at line 92 of file platform.h.
#define MBEDTLS_PLATFORM_STD_NV_SEED_READ mbedtls_platform_std_nv_seed_read |
Definition at line 86 of file platform.h.
#define MBEDTLS_PLATFORM_STD_NV_SEED_WRITE mbedtls_platform_std_nv_seed_write |
Definition at line 89 of file platform.h.
#define MBEDTLS_PLATFORM_STD_PRINTF printf |
The default printf
function to use.
Definition at line 61 of file platform.h.
#define MBEDTLS_PLATFORM_STD_SNPRINTF snprintf |
The default snprintf
function to use.
Definition at line 57 of file platform.h.
#define MBEDTLS_PLATFORM_STD_TIME time |
The default time
function to use.
Definition at line 76 of file platform.h.
#define mbedtls_printf printf |
Definition at line 178 of file platform.h.
#define mbedtls_snprintf MBEDTLS_PLATFORM_STD_SNPRINTF |
Definition at line 213 of file platform.h.
int mbedtls_platform_setup | ( | mbedtls_platform_context * | ctx | ) |
This function performs any platform initialization operations.
ctx | The Mbed TLS context. |
0
on success.Its use and whether it is necessary to call it is dependent on the platform.
void mbedtls_platform_teardown | ( | mbedtls_platform_context * | ctx | ) |
This function performs any platform teardown operations.
ctx | The Mbed TLS context. |
Its use and whether it is necessary to call it is dependent on the platform.