Function esp_idf_hal::sys::esp_eap_client_set_pac_file

source ·
pub unsafe extern "C" fn esp_eap_client_set_pac_file(
    pac_file: *const u8,
    pac_file_len: i32,
) -> i32
Expand description

@brief Set the PAC (Protected Access Credential) file for EAP-FAST authentication.

EAP-FAST requires a PAC file that contains the client’s credentials.

@attention 1. For files read from the file system, length has to be decremented by 1 byte. @attention 2. Disabling the ESP_WIFI_MBEDTLS_TLS_CLIENT config is required to use EAP-FAST.

@param[in] pac_file Pointer to the PAC file buffer. @param[in] pac_file_len Length of the PAC file buffer.

@return

  • ESP_OK: The PAC file for EAP-FAST authentication was set successfully.