Deleted Added
full compact
chap.c (80763) chap.c (81066)
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 *
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/chap.c 80763 2001-07-31 21:36:00Z brian $
28 * $FreeBSD: head/usr.sbin/ppp/chap.c 81066 2001-08-02 20:12:48Z 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/un.h>
36

--- 703 unchanged lines hidden (view full) ---

740 if ((ans = malloc(alen + 2)) == NULL) {
741 log_Printf(LogERROR, "Chap Input: Out of memory !\n");
742 m_freem(bp);
743 return NULL;
744 }
745 *ans = chap->auth.id;
746 bp = mbuf_Read(bp, ans + 1, alen);
747 if (p->link.lcp.want_authtype == 0x81 && ans[alen] != '\0') {
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/un.h>
36

--- 703 unchanged lines hidden (view full) ---

740 if ((ans = malloc(alen + 2)) == NULL) {
741 log_Printf(LogERROR, "Chap Input: Out of memory !\n");
742 m_freem(bp);
743 return NULL;
744 }
745 *ans = chap->auth.id;
746 bp = mbuf_Read(bp, ans + 1, alen);
747 if (p->link.lcp.want_authtype == 0x81 && ans[alen] != '\0') {
748 log_Printf(LogWARN, "%s: Compensating for corrupt (Win98?) "
748 log_Printf(LogWARN, "%s: Compensating for corrupt (Win98/WinME?) "
749 "CHAP81 RESPONSE\n", l->name);
750 ans[alen] = '\0';
751 }
752 ans[alen+1] = '\0';
753 bp = auth_ReadName(&chap->auth, bp, len);
754#ifdef HAVE_DES
755 lanman = p->link.lcp.want_authtype == 0x80 &&
756 alen == 49 && ans[alen] == 0;

--- 178 unchanged lines hidden ---
749 "CHAP81 RESPONSE\n", l->name);
750 ans[alen] = '\0';
751 }
752 ans[alen+1] = '\0';
753 bp = auth_ReadName(&chap->auth, bp, len);
754#ifdef HAVE_DES
755 lanman = p->link.lcp.want_authtype == 0x80 &&
756 alen == 49 && ans[alen] == 0;

--- 178 unchanged lines hidden ---