Home |
Function xn_ipcp_want_compress Function xn_ipcp_want_dns_address Function xn_lcp_want_chap |
Function xn_lcp_want_chapSet authentication protocol to negotiate to CHAP. int xn_lcp_want_chap(int iface_no, int host); Parametersiface_noInterface number returned by xn_attach. hostSet negotiation flag for local or remote host (LOCAL_HOST, REMOTE_HOST). return valueReturns 0 if successful, otherwise SOCKET_ERROR. If an error occurred, call xn_getlasterror and xn_geterror_string to return the error value. Section Error Codes further describes each error. Possible values for this function are:
This function establishes that LCP Authentication should be requested and CHAP should be the protocol to request. See the PPP documentation for a description of CHAP. Call this routine with host set to LOCAL_HOST to mandate that the remote host must authenticate itself where CHAP is the authentication protocol. If CHAP is NAKed and PAP is also configured, a new request will be sent with PAP requested. Call this routine with host set to REMOTE_HOST to accept CHAP if it is requested by the remote host or suggest CHAP in a Configuration-Nak in response to a request from the remote host for an unknown protocol or in response to a Password Authentication Protocol (PAP) request where CHAP is not configured. In order to set up a secret, xn_chap_add_secret needs to be called. In order to set up the local host name, xn_chap_machine_name needs to be called.
|