PPP, CORE, moved auth configuration from auth_reset() to lcp_resetci()

Prepare for PPP_SERVER support, we need to move auth configuration before
lcp_allowoptions is copied into lcp_gotoptions. Restore unused
auth_reset() function using pppd original source code.
This commit is contained in:
Sylvain Rochet
2015-02-28 12:59:29 +01:00
parent 587e0e3e0c
commit 8d05279599
3 changed files with 73 additions and 90 deletions

View File

@@ -564,7 +564,6 @@ void np_up(ppp_pcb *pcb, int proto); /* a network protocol has come up */
void np_down(ppp_pcb *pcb, int proto); /* a network protocol has gone down */
void np_finished(ppp_pcb *pcb, int proto); /* a network protocol no longer needs link */
#if PPP_AUTH_SUPPORT
void auth_reset(ppp_pcb *pcb); /* check what secrets we have */
int get_secret(ppp_pcb *pcb, const char *client, const char *server, char *secret, int *secret_len, int am_server);
/* get "secret" for chap */
#endif /* PPP_AUTH_SUPPORT */