X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fauth.c;h=41ef5463c5928d84f2ea7bc225d103aa61a15873;hb=ef0a499148f81d19ada42650cff5b969bf7cad7f;hp=92fe82d9cac8e56fc64405a4c1f3641ecc951f36;hpb=f482dc10721044d7ffe4cbc2e78f7ea93b1040e0;p=ppp.git diff --git a/pppd/auth.c b/pppd/auth.c index 92fe82d..41ef546 100644 --- a/pppd/auth.c +++ b/pppd/auth.c @@ -68,7 +68,7 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define RCSID "$Id: auth.c,v 1.104 2005/07/09 05:49:44 paulus Exp $" +#define RCSID "$Id: auth.c,v 1.107 2005/08/25 23:59:34 paulus Exp $" #include #include @@ -526,11 +526,18 @@ set_permitted_number(argv) /* * An Open on LCP has requested a change from Dead to Establish phase. - * Do what's necessary to bring the physical layer up. */ void link_required(unit) int unit; +{ +} + +/* + * Bring the link up to the point of being able to do ppp. + */ +void start_link(unit) + int unit; { char *msg; @@ -987,10 +994,12 @@ auth_withpeer_success(unit, protocol, prot_flavor) int unit, protocol, prot_flavor; { int bit; + const char *prot = ""; switch (protocol) { case PPP_CHAP: bit = CHAP_WITHPEER; + prot = "CHAP"; switch (prot_flavor) { case CHAP_MD5: bit |= CHAP_MD5_WITHPEER; @@ -1009,15 +1018,19 @@ auth_withpeer_success(unit, protocol, prot_flavor) if (passwd_from_file) BZERO(passwd, MAXSECRETLEN); bit = PAP_WITHPEER; + prot = "PAP"; break; case PPP_EAP: bit = EAP_WITHPEER; + prot = "EAP"; break; default: warn("auth_withpeer_success: unknown protocol %x", protocol); bit = 0; } + notice("%s authentication succeeded", prot); + /* Save the authentication method for later. */ auth_done[unit] |= bit; @@ -2545,5 +2558,5 @@ auth_script(script) argv[5] = strspeed; argv[6] = NULL; - auth_script_pid = run_program(script, argv, 0, auth_script_done, NULL); + auth_script_pid = run_program(script, argv, 0, auth_script_done, NULL, 0); }