tfMsChapRegisterNewPassword
Table of Contents >> Optional Protocols >> PPP Interface
| #include <trsocket.h> |
| int tfMsChapRegisterNewPassword | ( |
| ttUserInterface interfaceId, | |
| ttMsChapAuthenticateFunctPtr funcPtr | |
| ); |
Function Description
This function is used by the peer when it receives message from the authenticator that an expired password was used. The peer will call the authFunctionPtr registered here to get a new password, and then send Change_Password packet to the authenticator in order to finish the authentication processing.
The prototype of the notification function is:
char * myMsChapAuthenticate(char * username, int * secretLenPtr);
Parameters
- interfaceId
- The interface for which to use this authentication routine.
- funcPtr
- The pointer to the function to authenticate the remote user.
Returns
- TM_ENOERROR
- Success.
- TM_EINVAL
- Invalid 'interfaceId' or 'funcPtr'.