RetroArch
Functions
platform.c File Reference
#include "mbedtls/config.h"
#include "mbedtls/platform.h"
Include dependency graph for platform.c:

Functions

int mbedtls_platform_setup (mbedtls_platform_context *ctx)
 Perform any platform initialisation operations. More...
 
void mbedtls_platform_teardown (mbedtls_platform_context *ctx)
 Perform any platform teardown operations. More...
 

Function Documentation

◆ mbedtls_platform_setup()

int mbedtls_platform_setup ( mbedtls_platform_context ctx)

Perform any platform initialisation operations.

Parameters
ctxmbed TLS context
Returns
0 if successful
Note
This function is intended to allow platform specific initialisation, and should be called before any other library functions. Its implementation is platform specific, and by default, unless platform specific code is provided, it does nothing.

Its use and whether its necessary to be called is dependent on the platform.

Here is the call graph for this function:

◆ mbedtls_platform_teardown()

void mbedtls_platform_teardown ( mbedtls_platform_context ctx)

Perform any platform teardown operations.

Parameters
ctxmbed TLS context
Note
This function should be called after every other mbed TLS module has been correctly freed using the appropriate free function. Its implementation is platform specific, and by default, unless platform specific code is provided, it does nothing.

Its use and whether its necessary to be called is dependent on the platform.

Here is the call graph for this function: