Espressif ESP32-S2 Programming Manual page 539

Table of Contents

Advertisement

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
Callback function for reading data from TLS/SSL connection.
ssize_t (*write)(struct
Callback function for writing data to TLS/SSL connection.
esp_tls_conn_state_t
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 Connection State.
typedef enum
esp_tls_role
typedef struct
psk_key_hint
ESP-TLS preshared key and hint structure.
typedef struct
tls_keep_alive_cfg
esp-tls client session ticket ctx
Keep alive parameters structure
typedef struct
esp_tls_cfg
ESP-TLS configuration parameters.
Note Note about format of certificates:
Espressif Systems
esp_tls
*tls, char *data, size_t datalen)
esp_tls
*tls, const char *data, size_t datalen)
conn_state
esp_tls_conn_state_t
esp_tls_role_t
psk_hint_key_t
tls_keep_alive_cfg_t
esp_tls_cfg_t
Submit Document Feedback
528
Release v4.4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S2 and is the answer not in the manual?

Table of Contents

Save PDF