User`s guide
234
K
A
DAK
KwikNet PPP Option
kn_ppp_admin kn_ppp_admin
Purpose Provide PPP Authentication Services
Context
n KwikNet Task n Application Task
Setup Prototype and definitions are in file KN_API.H.
Structure definitions are in file KN_PPPAA.C.
#include "KN_LIB.H"
#include "KN_NET.H"
int kn_ppp_admin(KN_NETDP netdp, int opcode,
const char *instr, int inlen,
const char **outbuf, int buflen);
Description Netdp is a network descriptor pointer, the KwikNet handle used to identify
the network interface of interest.
Opcode is one of the following operation codes:
KN_PPPAUTH_LPNAME PAP: get local name
KN_PPPAUTH_LPPWD PAP: get local password
KN_PPPAUTH_PPCHECK PAP: authenticate peer
KN_PPPAUTH_LCNAME CHAP or MS-CHAPv1: get local name
KN_PPPAUTH_LCSECRET CHAP: get local secret
KN_PPPAUTH_PCNAME CHAP: get challenge name
KN_PPPAUTH_PCSECRET CHAP: get peer secret
KN_PPPAUTH_LECNAME EAP-MD5: get local name
KN_PPPAUTH_LECSECRET EAP-MD5: get local secret
KN_PPPAUTH_PECNAME EAP-MD5: get challenge name
KN_PPPAUTH_PECSECRET EAP-MD5: get peer secret
KN_PPPAUTH_LM1SECRET MS-CHAPv1: get local secret
KN_PPPAUTH_PM1SECRET MS-CHAPv1: get peer secret
Instr is a pointer to a character array needed to process the request
specified by
opcode. If no such parameter is required, instr will be
NULL.
Inlen is the length of the character array, if any, referenced by parameter
instr.
Outbuf is a pointer to a character pointer used to process the request
specified by
opcode. For most operations, outbuf is a pointer to
storage for a pointer to the authentication parameter being returned to
the caller. If opcode is KN_PPPAUTH_PPCHECK, outbuf is a pointer to
an additional input parameter.
Buflen is the length of the character array referenced by parameter
outbuf if, and only if, outbuf is used as an input parameter.
...more