EasyManua.ls Logo

Espressif ESP32-S2 - Page 539

Espressif ESP32-S2
1695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 2. API Reference
mbedtls_ssl_config conf
TLS/SSL configuration to be shared between mbedtls_ssl_context structures
mbedtls_net_context server_fd
mbedTLS wrapper type for sockets
mbedtls_x509_crt cacert
Container for the X.509 CA certificate
mbedtls_x509_crt *cacert_ptr
Pointer to the cacert being used.
mbedtls_x509_crt clientcert
Container for the X.509 client certificate
mbedtls_pk_context clientkey
Container for the private key of the client certificate
int sockfd
Underlying socket file descriptor.
ssize_t (*read)(struct esp_tls *tls, char *data, size_t datalen)
Callback function for reading data from TLS/SSL connection.
ssize_t (*write)(struct esp_tls *tls, const char *data, size_t datalen)
Callback function for writing data to TLS/SSL connection.
esp_tls_conn_state_t conn_state
ESP-TLS Connection state
fd_set rset
read file descriptors
fd_set wset
write file descriptors
bool is_tls
indicates connection type (TLS or NON-TLS)
esp_tls_role_t role
esp-tls role
ESP_TLS_CLIENT
ESP_TLS_SERVER
esp_tls_error_handle_t error_handle
handle to error descriptor
Type Definitions
typedef enum esp_tls_conn_state esp_tls_conn_state_t
ESP-TLS Connection State.
typedef enum esp_tls_role esp_tls_role_t
typedef struct psk_key_hint psk_hint_key_t
ESP-TLS preshared key and hint structure.
typedef struct tls_keep_alive_cfg tls_keep_alive_cfg_t
esp-tls client session ticket ctx
Keep alive parameters structure
typedef struct esp_tls_cfg esp_tls_cfg_t
ESP-TLS configuration parameters.
Note Note about format of certificates:
Espressif Systems 528
Submit Document Feedback
Release v4.4

Table of Contents