esp_idf_hal::sys

Function esp_tls_server_session_create

Source
pub unsafe extern "C" fn esp_tls_server_session_create(
    cfg: *mut esp_tls_cfg_server,
    sockfd: i32,
    tls: *mut esp_tls,
) -> i32
Expand description

@brief Create TLS/SSL server session

This function creates a TLS/SSL server context for already accepted client connection and performs TLS/SSL handshake with the client

@param[in] cfg Pointer to esp_tls_cfg_server_t @param[in] sockfd FD of accepted connection @param[out] tls Pointer to allocated esp_tls_t

@return - 0 if successful - <0 in case of error