www.beck-ipc.com

@CHIP-RTOS C Library V2.06 - TCP/IP API


Dev_PPP_Register_Pap

Register a PPP PAP authentication callback function.

int Dev_PPP_Register_Pap(DevUserIfaceHandle DevHandlePtr,
                             const void far * AuthCallbackFunction,
                             int *error);

Parameters

DevHandlePtr

Device handle

AuthCallbackFunction

Pointer to the authentication callback function.

error

Output parameter:  Failure code, 0 on success.

Return Value

0: success
-1: failed

Comments

The prototype of the user provided function is defined as:

int huge * myPAPAuthenticate(char *username, char * password) ;

which returns 1 for a valid username/password pair, else 0.

See Also

RTOS API

This library function invokes a RTOS software interrupt. Refer to this RTOS API function's documentation for more details.

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3
    V1.11V1.01V1.01V0.90

This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document