Function esp_idf_svc::hal::sys::esp_tls_conn_destroy
source ยท pub unsafe extern "C" fn esp_tls_conn_destroy(
tls: *mut esp_tls,
) -> i32
Expand description
@brief Close the TLS/SSL connection and free any allocated resources.
This function should be called to close each tls connection opened with esp_tls_conn_new_sync() (or esp_tls_conn_http_new_sync()) and esp_tls_conn_new_async() (or esp_tls_conn_http_new_async()) APIs.
@param[in] tls pointer to esp-tls as esp-tls handle.
@return - 0 on success - -1 if socket error or an invalid argument