ReactOS 0.4.16-dev-297-gc569aee
|
This file contains the definitions and functions of the Mbed TLS platform abstraction layer. More...
Go to the source code of this file.
Classes | |
struct | mbedtls_platform_context |
The platform context structure. More... | |
Macros | |
#define | MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED -0x0070 |
#define | MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED -0x0072 |
This file contains the definitions and functions of the Mbed TLS platform abstraction layer.
The platform abstraction layer removes the need for the library to directly link to standard C library functions or operating system services, making the library easier to port and embed. Application developers and users of the library can provide their own implementations of these functions, or implementations specific to their platform, which can be statically linked to the library or dynamically configured at runtime.
Definition in file platform.h.
Definition at line 169 of file platform.h.
#define MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED -0x0072 |
The requested feature is not supported by the platform
Definition at line 72 of file platform.h.
#define MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED -0x0070 |
Hardware accelerator failed
Definition at line 71 of file platform.h.
Definition at line 278 of file platform.h.
#define MBEDTLS_EXIT_FAILURE MBEDTLS_PLATFORM_STD_EXIT_FAILURE |
Definition at line 291 of file platform.h.
#define MBEDTLS_EXIT_SUCCESS MBEDTLS_PLATFORM_STD_EXIT_SUCCESS |
Definition at line 286 of file platform.h.
Definition at line 195 of file platform.h.
Definition at line 168 of file platform.h.
The default calloc
function to use.
Definition at line 104 of file platform.h.
The default exit
function to use.
Definition at line 110 of file platform.h.
#define MBEDTLS_PLATFORM_STD_EXIT_FAILURE EXIT_FAILURE |
The default exit value to use.
Definition at line 119 of file platform.h.
#define MBEDTLS_PLATFORM_STD_EXIT_SUCCESS EXIT_SUCCESS |
The default exit value to use.
Definition at line 116 of file platform.h.
The default fprintf
function to use.
Definition at line 101 of file platform.h.
The default free
function to use.
Definition at line 107 of file platform.h.
The default printf
function to use.
Definition at line 98 of file platform.h.
The default snprintf
function to use.
Definition at line 94 of file platform.h.
The default time
function to use.
Definition at line 113 of file platform.h.
Definition at line 219 of file platform.h.
#define mbedtls_snprintf MBEDTLS_PLATFORM_STD_SNPRINTF |
Definition at line 254 of file platform.h.
The platform context structure.
int mbedtls_platform_setup | ( | mbedtls_platform_context * | ctx | ) |
This function performs any platform-specific initialization operations.
Its implementation is platform-specific, and unless platform-specific code is provided, it does nothing.
ctx | The platform context. |
0
on success. void mbedtls_platform_teardown | ( | mbedtls_platform_context * | ctx | ) |
This function performs any platform teardown operations.
Its implementation is platform-specific, and unless platform-specific code is provided, it does nothing.
ctx | The platform context. |