esp_eap_client_set_new_password() function
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.
Arguments
new_password
Pointer to the new password data.
len
Length of the new password data.
Return value
- 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.
esp_eap_client_set_new_password() is called by 1 function and calls 2 functions:
![]()
esp_eap_client_set_new_password()
esp_eap_client_set_new_password() reads 1 variable and writes 2 variables:
![]()
esp_eap_client_set_new_password()