tfPapRegisterAuthenticate

Jump to: navigation, search

Table of Contents >> Optional Protocols >> PPP Interface


#include <trsocket.h>


int tfPapRegisterAuthenticate (
ttUserInterface interfaceId,
ttPapAuthenticateFunctPtr funcPtr
);


Function Description

When acting as a PPP server, a function must be called to validate an incoming authentication request. This function is passed the username and password from the peer by the PPP layer. The function must return 1 for a valid username/password or 0 for an invalid username/password.


The prototype of the notification function is:

char * myPapAuthenticate(char * username, char * password);


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'.


Table of Contents >> Optional Protocols >> PPP Interface