1/*- 2 * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org> 3 * based on work by Toshiharu OHNO <tony-o@iij.ad.jp> 4 * Internet Initiative Japan, Inc (IIJ) 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/usr.sbin/ppp/pap.c 96324 2002-05-10 03:11:35Z brian $ |
29 */ 30 31#include <sys/param.h> 32#include <netinet/in.h> 33#include <netinet/in_systm.h> 34#include <netinet/ip.h> 35#include <sys/socket.h> 36#include <sys/un.h> --- 101 unchanged lines hidden (view full) --- 138 139 link_PushPacket(&authp->physical->link, bp, authp->physical->dl->bundle, 140 LINK_QUEUES(&authp->physical->link) - 1, PROTO_PAP); 141} 142 143static void 144pap_Success(struct authinfo *authp) 145{ |
146 struct bundle *bundle = authp->physical->dl->bundle; 147 |
148 datalink_GotAuthname(authp->physical->dl, authp->in.name); |
149#ifndef NORADIUS 150 if (*bundle->radius.cfg.file && bundle->radius.repstr) 151 SendPapCode(authp, PAP_ACK, bundle->radius.repstr); 152 else 153#endif 154 SendPapCode(authp, PAP_ACK, "Greetings!!"); |
155 authp->physical->link.lcp.auth_ineed = 0; |
156 if (Enabled(bundle, OPT_UTMP)) |
157 physical_Login(authp->physical, authp->in.name); 158 159 if (authp->physical->link.lcp.auth_iwait == 0) 160 /* 161 * Either I didn't need to authenticate, or I've already been 162 * told that I got the answer right. 163 */ 164 datalink_AuthOk(authp->physical->dl); --- 139 unchanged lines hidden --- |