Function esp_idf_sys::esp_tls_get_and_clear_last_error
source ยท pub unsafe extern "C" fn esp_tls_get_and_clear_last_error(
h: esp_tls_error_handle_t,
esp_tls_code: *mut c_int,
esp_tls_flags: *mut c_int,
) -> esp_err_t
Expand description
@brief Returns last error in esp_tls with detailed mbedtls related error codes. The error information is cleared internally upon return
@param[in] h esp-tls error handle. @param[out] esp_tls_code last error code returned from mbedtls api (set to zero if none) This pointer could be NULL if caller does not care about esp_tls_code @param[out] esp_tls_flags last certification verification flags (set to zero if none) This pointer could be NULL if caller does not care about esp_tls_code
@return - ESP_ERR_INVALID_STATE if invalid parameters - ESP_OK (0) if no error occurred - specific error code (based on ESP_ERR_ESP_TLS_BASE) otherwise