mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-28 19:21:20 +00:00
improved ppp_set_auth() mschap support
This commit is contained in:
parent
fed76f29d0
commit
f7ef9887d7
@ -341,14 +341,16 @@ void ppp_set_auth(ppp_pcb *pcb, u8_t authtype, const char *user, const char *pas
|
||||
pcb->settings.refuse_chap = 0;
|
||||
else
|
||||
pcb->settings.refuse_chap = 1;
|
||||
#endif /* CHAP_SUPPORT */
|
||||
|
||||
#if MSCHAP_SUPPORT
|
||||
if(authtype & PPPAUTHTYPE_MSCHAP)
|
||||
if(authtype & PPPAUTHTYPE_MSCHAP) {
|
||||
pcb->settings.refuse_mschap = 0;
|
||||
else
|
||||
pcb->settings.refuse_mschap_v2 = 0;
|
||||
} else {
|
||||
pcb->settings.refuse_mschap = 1;
|
||||
pcb->settings.refuse_mschap_v2 = 1;
|
||||
}
|
||||
#endif /* MSCHAP_SUPPORT */
|
||||
#endif /* CHAP_SUPPORT */
|
||||
|
||||
#if EAP_SUPPORT
|
||||
if(authtype & PPPAUTHTYPE_EAP)
|
||||
|
Loading…
x
Reference in New Issue
Block a user