RetroArch
Classes | Macros | Functions | Variables
net_socket_ssl.c File Reference
#include <string.h>
#include <net/net_compat.h>
#include <net/net_socket.h>
#include <net/net_socket_ssl.h>
#include <mbedtls/config.h>
#include <mbedtls/certs.h>
#include <mbedtls/debug.h>
#include <mbedtls/platform.h>
#include <mbedtls/net_sockets.h>
#include <mbedtls/ssl.h>
#include <mbedtls/ctr_drbg.h>
#include <mbedtls/entropy.h>
#include "../../deps/mbedtls/cacert.h"
Include dependency graph for net_socket_ssl.c:

Classes

struct  ssl_state
 

Macros

#define DEBUG_LEVEL   0
 

Functions

static void ssl_debug (void *ctx, int level, const char *file, int line, const char *str)
 
voidssl_socket_init (int fd, const char *domain)
 
int ssl_socket_connect (void *state_data, void *data, bool timeout_enable, bool nonblock)
 
ssize_t ssl_socket_receive_all_nonblocking (void *state_data, bool *error, void *data_, size_t size)
 
int ssl_socket_receive_all_blocking (void *state_data, void *data_, size_t size)
 
int ssl_socket_send_all_blocking (void *state_data, const void *data_, size_t size, bool no_signal)
 
ssize_t ssl_socket_send_all_nonblocking (void *state_data, const void *data_, size_t size, bool no_signal)
 
void ssl_socket_close (void *state_data)
 
void ssl_socket_free (void *state_data)
 

Variables

static const char * pers = "libretro"
 

Macro Definition Documentation

◆ DEBUG_LEVEL

#define DEBUG_LEVEL   0

Function Documentation

◆ ssl_debug()

static void ssl_debug ( void ctx,
int  level,
const char *  file,
int  line,
const char *  str 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_socket_close()

void ssl_socket_close ( void state_data)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_socket_connect()

int ssl_socket_connect ( void state_data,
void data,
bool  timeout_enable,
bool  nonblock 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_socket_free()

void ssl_socket_free ( void state_data)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_socket_init()

void* ssl_socket_init ( int  fd,
const char *  domain 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_socket_receive_all_blocking()

int ssl_socket_receive_all_blocking ( void state_data,
void data_,
size_t  size 
)
Here is the call graph for this function:

◆ ssl_socket_receive_all_nonblocking()

ssize_t ssl_socket_receive_all_nonblocking ( void state_data,
bool error,
void data_,
size_t  size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_socket_send_all_blocking()

int ssl_socket_send_all_blocking ( void state_data,
const void data_,
size_t  size,
bool  no_signal 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_socket_send_all_nonblocking()

ssize_t ssl_socket_send_all_nonblocking ( void state_data,
const void data_,
size_t  size,
bool  no_signal 
)
Here is the call graph for this function:

Variable Documentation

◆ pers

const char* pers = "libretro"
static