options of pap and chap??

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

options of pap and chap??

applehuu
In windows XP,i use pap or chap(the XP's dial program),it can dialing
successful.
But in lwip,use pap or chap can't  auth.
In lwip,how to select pap or chap?

i do it like this:

void pppInit(void)
{
...
pppSetAuth(PPPAUTHTYPE_ANY, USER, PASSWORD);  //can't working successful
//pppSetAuth(PPPAUTHTYPE_PAP, USER, PASSWORD);//can't working successful
//pppSetAuth(PPPAUTHTYPE_CHAP, USER, PASSWORD);//can't working successful
...
}

#ifndef PAP_SUPPORT
#define PAP_SUPPORT                    1  /*Set for  PAP*/
#endif

#ifndef CHAP_SUPPORT
#define CHAP_SUPPORT                    0      /* Set for CHAP. */
#endif

Do i need  to modify other code for auth?





_______________________________________________
lwip-users mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/lwip-users