RetroArch
Functions
ssl_cli.c File Reference
#include "mbedtls/config.h"
#include "mbedtls/platform.h"
#include "mbedtls/debug.h"
#include "mbedtls/ssl.h"
#include "mbedtls/ssl_internal.h"
#include <string.h>
#include <stdint.h>
#include "mbedtls/platform_time.h"
#include "arc4_alt.h"
#include "ssl_parse_renegotiation_info.h"
#include "ssl_parse_max_fragment_length_ext.h"
Include dependency graph for ssl_cli.c:

Functions

static void ssl_write_hostname_ext (mbedtls_ssl_context *ssl, unsigned char *buf, size_t *olen)
 
static void ssl_cli_write_renegotiation_ext (mbedtls_ssl_context *ssl, unsigned char *buf, size_t *olen)
 
static void ssl_write_signature_algorithms_ext (mbedtls_ssl_context *ssl, unsigned char *buf, size_t *olen)
 
static void ssl_cli_write_supported_elliptic_curves_ext (mbedtls_ssl_context *ssl, unsigned char *buf, size_t *olen)
 
static void ssl_cli_write_supported_point_formats_ext (mbedtls_ssl_context *ssl, unsigned char *buf, size_t *olen)
 
static void ssl_cli_write_max_fragment_length_ext (mbedtls_ssl_context *ssl, unsigned char *buf, size_t *olen)
 
static void ssl_cli_write_truncated_hmac_ext (mbedtls_ssl_context *ssl, unsigned char *buf, size_t *olen)
 
static void ssl_cli_write_encrypt_then_mac_ext (mbedtls_ssl_context *ssl, unsigned char *buf, size_t *olen)
 
static void ssl_cli_write_extended_ms_ext (mbedtls_ssl_context *ssl, unsigned char *buf, size_t *olen)
 
static void ssl_cli_write_session_ticket_ext (mbedtls_ssl_context *ssl, unsigned char *buf, size_t *olen)
 
static void ssl_cli_write_alpn_ext (mbedtls_ssl_context *ssl, unsigned char *buf, size_t *olen)
 
static int ssl_generate_random (mbedtls_ssl_context *ssl)
 
static int ssl_write_client_hello (mbedtls_ssl_context *ssl)
 
static int ssl_cli_parse_truncated_hmac_ext (mbedtls_ssl_context *ssl, const unsigned char *buf, size_t len)
 
static int ssl_cli_parse_encrypt_then_mac_ext (mbedtls_ssl_context *ssl, const unsigned char *buf, size_t len)
 
static int ssl_cli_parse_extended_ms_ext (mbedtls_ssl_context *ssl, const unsigned char *buf, size_t len)
 
static int ssl_cli_parse_session_ticket_ext (mbedtls_ssl_context *ssl, const unsigned char *buf, size_t len)
 
static int ssl_parse_supported_point_formats_ext (mbedtls_ssl_context *ssl, const unsigned char *buf, size_t len)
 
static int ssl_cli_parse_alpn_ext (mbedtls_ssl_context *ssl, const unsigned char *buf, size_t len)
 
static int ssl_parse_hello_verify_request (mbedtls_ssl_context *ssl)
 
static int ssl_parse_server_hello (mbedtls_ssl_context *ssl)
 
static int ssl_parse_server_dh_params (mbedtls_ssl_context *ssl, unsigned char **p, unsigned char *end)
 
static int ssl_check_server_ecdh_params (const mbedtls_ssl_context *ssl)
 
static int ssl_parse_server_ecdh_params (mbedtls_ssl_context *ssl, unsigned char **p, unsigned char *end)
 
static int ssl_parse_server_psk_hint (mbedtls_ssl_context *ssl, unsigned char **p, unsigned char *end)
 
static int ssl_write_encrypted_pms (mbedtls_ssl_context *ssl, size_t offset, size_t *olen, size_t pms_offset)
 
static int ssl_parse_signature_algorithm (mbedtls_ssl_context *ssl, unsigned char **p, unsigned char *end, mbedtls_md_type_t *md_alg, mbedtls_pk_type_t *pk_alg)
 
static int ssl_cli_get_ecdh_params_from_cert (mbedtls_ssl_context *ssl)
 
static int ssl_parse_server_key_exchange (mbedtls_ssl_context *ssl)
 
static int ssl_parse_certificate_request (mbedtls_ssl_context *ssl)
 
static int ssl_parse_server_hello_done (mbedtls_ssl_context *ssl)
 
static int ssl_write_client_key_exchange (mbedtls_ssl_context *ssl)
 
static int ssl_write_certificate_verify (mbedtls_ssl_context *ssl)
 
static int ssl_parse_new_session_ticket (mbedtls_ssl_context *ssl)
 
int mbedtls_ssl_handshake_client_step (mbedtls_ssl_context *ssl)
 

Function Documentation

◆ mbedtls_ssl_handshake_client_step()

int mbedtls_ssl_handshake_client_step ( mbedtls_ssl_context ssl)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_check_server_ecdh_params()

static int ssl_check_server_ecdh_params ( const mbedtls_ssl_context ssl)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_cli_get_ecdh_params_from_cert()

static int ssl_cli_get_ecdh_params_from_cert ( mbedtls_ssl_context ssl)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_cli_parse_alpn_ext()

static int ssl_cli_parse_alpn_ext ( mbedtls_ssl_context ssl,
const unsigned char *  buf,
size_t  len 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_cli_parse_encrypt_then_mac_ext()

static int ssl_cli_parse_encrypt_then_mac_ext ( mbedtls_ssl_context ssl,
const unsigned char *  buf,
size_t  len 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_cli_parse_extended_ms_ext()

static int ssl_cli_parse_extended_ms_ext ( mbedtls_ssl_context ssl,
const unsigned char *  buf,
size_t  len 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_cli_parse_session_ticket_ext()

static int ssl_cli_parse_session_ticket_ext ( mbedtls_ssl_context ssl,
const unsigned char *  buf,
size_t  len 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_cli_parse_truncated_hmac_ext()

static int ssl_cli_parse_truncated_hmac_ext ( mbedtls_ssl_context ssl,
const unsigned char *  buf,
size_t  len 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_cli_write_alpn_ext()

static void ssl_cli_write_alpn_ext ( mbedtls_ssl_context ssl,
unsigned char *  buf,
size_t *  olen 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_cli_write_encrypt_then_mac_ext()

static void ssl_cli_write_encrypt_then_mac_ext ( mbedtls_ssl_context ssl,
unsigned char *  buf,
size_t *  olen 
)
static
Here is the caller graph for this function:

◆ ssl_cli_write_extended_ms_ext()

static void ssl_cli_write_extended_ms_ext ( mbedtls_ssl_context ssl,
unsigned char *  buf,
size_t *  olen 
)
static
Here is the caller graph for this function:

◆ ssl_cli_write_max_fragment_length_ext()

static void ssl_cli_write_max_fragment_length_ext ( mbedtls_ssl_context ssl,
unsigned char *  buf,
size_t *  olen 
)
static
Here is the caller graph for this function:

◆ ssl_cli_write_renegotiation_ext()

static void ssl_cli_write_renegotiation_ext ( mbedtls_ssl_context ssl,
unsigned char *  buf,
size_t *  olen 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_cli_write_session_ticket_ext()

static void ssl_cli_write_session_ticket_ext ( mbedtls_ssl_context ssl,
unsigned char *  buf,
size_t *  olen 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_cli_write_supported_elliptic_curves_ext()

static void ssl_cli_write_supported_elliptic_curves_ext ( mbedtls_ssl_context ssl,
unsigned char *  buf,
size_t *  olen 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_cli_write_supported_point_formats_ext()

static void ssl_cli_write_supported_point_formats_ext ( mbedtls_ssl_context ssl,
unsigned char *  buf,
size_t *  olen 
)
static
Here is the caller graph for this function:

◆ ssl_cli_write_truncated_hmac_ext()

static void ssl_cli_write_truncated_hmac_ext ( mbedtls_ssl_context ssl,
unsigned char *  buf,
size_t *  olen 
)
static
Here is the caller graph for this function:

◆ ssl_generate_random()

static int ssl_generate_random ( mbedtls_ssl_context ssl)
static
Here is the caller graph for this function:

◆ ssl_parse_certificate_request()

static int ssl_parse_certificate_request ( mbedtls_ssl_context ssl)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_parse_hello_verify_request()

static int ssl_parse_hello_verify_request ( mbedtls_ssl_context ssl)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_parse_new_session_ticket()

static int ssl_parse_new_session_ticket ( mbedtls_ssl_context ssl)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_parse_server_dh_params()

static int ssl_parse_server_dh_params ( mbedtls_ssl_context ssl,
unsigned char **  p,
unsigned char *  end 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_parse_server_ecdh_params()

static int ssl_parse_server_ecdh_params ( mbedtls_ssl_context ssl,
unsigned char **  p,
unsigned char *  end 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_parse_server_hello()

static int ssl_parse_server_hello ( mbedtls_ssl_context ssl)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_parse_server_hello_done()

static int ssl_parse_server_hello_done ( mbedtls_ssl_context ssl)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_parse_server_key_exchange()

static int ssl_parse_server_key_exchange ( mbedtls_ssl_context ssl)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_parse_server_psk_hint()

static int ssl_parse_server_psk_hint ( mbedtls_ssl_context ssl,
unsigned char **  p,
unsigned char *  end 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_parse_signature_algorithm()

static int ssl_parse_signature_algorithm ( mbedtls_ssl_context ssl,
unsigned char **  p,
unsigned char *  end,
mbedtls_md_type_t md_alg,
mbedtls_pk_type_t pk_alg 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_parse_supported_point_formats_ext()

static int ssl_parse_supported_point_formats_ext ( mbedtls_ssl_context ssl,
const unsigned char *  buf,
size_t  len 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_write_certificate_verify()

static int ssl_write_certificate_verify ( mbedtls_ssl_context ssl)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_write_client_hello()

static int ssl_write_client_hello ( mbedtls_ssl_context ssl)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_write_client_key_exchange()

static int ssl_write_client_key_exchange ( mbedtls_ssl_context ssl)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_write_encrypted_pms()

static int ssl_write_encrypted_pms ( mbedtls_ssl_context ssl,
size_t  offset,
size_t *  olen,
size_t  pms_offset 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_write_hostname_ext()

static void ssl_write_hostname_ext ( mbedtls_ssl_context ssl,
unsigned char *  buf,
size_t *  olen 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ssl_write_signature_algorithms_ext()

static void ssl_write_signature_algorithms_ext ( mbedtls_ssl_context ssl,
unsigned char *  buf,
size_t *  olen 
)
static
Here is the call graph for this function:
Here is the caller graph for this function: