mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-08 08:33:39 +08:00
PPP: introduce ppp_set_auth_required macro
PPP auth required flag is currently hardcoded to true if PPP is acting as a server and set to false if PPP is acting as a client. This is probably the most wanted behavior, but since we now have the ability to change that at runtime, allow users to do it. It means we can now have a server which asks the client to authenticate or vice versa. This is pretty unusual thought. What we don't support yet is mutual authentication with a different set of user and password per direction which is even less usual.
This commit is contained in:
@@ -351,12 +351,6 @@ pppos_listen(ppp_pcb *ppp, void *ctx)
|
||||
lcp_wo = &ppp->lcp_wantoptions;
|
||||
lcp_wo->silent = 1;
|
||||
|
||||
#if PPP_AUTH_SUPPORT
|
||||
if (ppp->settings.user && ppp->settings.passwd) {
|
||||
ppp->settings.auth_required = 1;
|
||||
}
|
||||
#endif /* PPP_AUTH_SUPPORT */
|
||||
|
||||
/*
|
||||
* Default the in and out accm so that escape and flag characters
|
||||
* are always escaped.
|
||||
|
||||
Reference in New Issue
Block a user