Function esp_idf_sys::esp_tls_server_session_create

source ยท
pub unsafe extern "C" fn esp_tls_server_session_create(
    cfg: *mut esp_tls_cfg_server_t,
    sockfd: c_int,
    tls: *mut esp_tls_t,
) -> c_int
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