Function esp_idf_hal::sys::esp_tls_get_and_clear_last_error
source ยท pub unsafe extern "C" fn esp_tls_get_and_clear_last_error(
h: *mut esp_tls_last_error,
esp_tls_code: *mut i32,
esp_tls_flags: *mut i32,
) -> i32
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