Function esp_idf_hal::sys::esp_eap_client_set_new_password

source ยท
pub unsafe extern "C" fn esp_eap_client_set_new_password(
    new_password: *const u8,
    len: i32,
) -> i32
Expand description

@brief Set a new password for MSCHAPv2 authentication method.

This function sets the new password to be used during MSCHAPv2 authentication. The new password is used to substitute the old password when an eap-mschapv2 failure request message with error code ERROR_PASSWD_EXPIRED is received.

@param[in] new_password Pointer to the new password data. @param[in] len Length of the new password data.

@return

  • ESP_OK: The new password was set successfully.
  • ESP_ERR_INVALID_ARG: Failed due to an invalid argument (len <= 0).
  • ESP_ERR_NO_MEM: Failed due to memory allocation failure.