otp_ssl.c
Include dependency graph for otp_ssl.c:
Functions
-
int mbedtls_ssl_send_cb(void *ctx, const unsigned char *buf, size_t len)
-
int mbedtls_ssl_recv_cb(void *ctx, unsigned char *buf, size_t len)
-
void otp_ssl_init(GlobalContext *global)
Variables
-
static const ErlNifResourceTypeInit EntropyContextResourceTypeInit = {.members = 1, .dtor = entropycontext_dtor,}
-
static const ErlNifResourceTypeInit CtrDrbgResourceTypeInit = {.members = 1, .dtor = ctrdrbg_dtor,}
-
static const ErlNifResourceTypeInit SSLContextResourceTypeInit = {.members = 1, .dtor = sslcontext_dtor,}
-
static const ErlNifResourceTypeInit SSLConfigResourceTypeInit = {.members = 1, .dtor = sslconfig_dtor,}
-
static ErlNifResourceType *entropycontext_resource_type
-
static ErlNifResourceType *ctrdrbg_resource_type
-
static ErlNifResourceType *sslcontext_resource_type
-
static ErlNifResourceType *sslconfig_resource_type
- static const AtomStringIntPair endpoint_table [] = {{ATOM_STR("\x6", "client"), MBEDTLS_SSL_IS_CLIENT },{ATOM_STR("\x6", "server"), MBEDTLS_SSL_IS_SERVER },}
- static const AtomStringIntPair authmode_table [] = {{ATOM_STR("\x4", "none"), MBEDTLS_SSL_VERIFY_NONE },{ATOM_STR("\x8", "optional"), MBEDTLS_SSL_VERIFY_OPTIONAL },{ATOM_STR("\x8", "required"), MBEDTLS_SSL_VERIFY_REQUIRED },}
-
static const struct Nif ssl_entropy_init_nif = {.base.type = NIFFunctionType, .nif_ptr = nif_ssl_entropy_init}
-
static const struct Nif ssl_ctr_drbg_init_nif = {.base.type = NIFFunctionType, .nif_ptr = nif_ssl_ctr_drbg_init}
-
static const struct Nif ssl_ctr_drbg_seed_nif = {.base.type = NIFFunctionType, .nif_ptr = nif_ssl_ctr_drbg_seed}
-
static const struct Nif ssl_init_nif = {.base.type = NIFFunctionType, .nif_ptr = nif_ssl_init}
-
static const struct Nif ssl_set_bio_nif = {.base.type = NIFFunctionType, .nif_ptr = nif_ssl_set_bio}
-
static const struct Nif ssl_config_init_nif = {.base.type = NIFFunctionType, .nif_ptr = nif_ssl_config_init}
-
static const struct Nif ssl_config_defaults_nif = {.base.type = NIFFunctionType, .nif_ptr = nif_ssl_config_defaults}
-
static const struct Nif ssl_conf_authmode_nif = {.base.type = NIFFunctionType, .nif_ptr = nif_ssl_conf_authmode}
-
static const struct Nif ssl_conf_rng_nif = {.base.type = NIFFunctionType, .nif_ptr = nif_ssl_conf_rng}
-
static const struct Nif ssl_set_hostname_nif = {.base.type = NIFFunctionType, .nif_ptr = nif_ssl_set_hostname}
-
static const struct Nif ssl_setup_nif = {.base.type = NIFFunctionType, .nif_ptr = nif_ssl_setup}
-
static const struct Nif ssl_handshake_step_nif = {.base.type = NIFFunctionType, .nif_ptr = nif_ssl_handshake_step}
-
static const struct Nif ssl_close_notify_nif = {.base.type = NIFFunctionType, .nif_ptr = nif_ssl_close_notify}
-
static const struct Nif ssl_write_nif = {.base.type = NIFFunctionType, .nif_ptr = nif_ssl_write}
-
static const struct Nif ssl_read_nif = {.base.type = NIFFunctionType, .nif_ptr = nif_ssl_read}