chap.h (833882f74089dd21e429d7033ace6b5db16dfbb7) | chap.h (2764b86afdc99a30f4b1a4da2c04db8aa7aa785d) |
---|---|
1/* 2 * Written by Toshiharu OHNO (tony-o@iij.ad.jp) 3 * 4 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd. 5 * 6 * Redistribution and use in source and binary forms are permitted 7 * provided that the above copyright notice and this paragraph are 8 * duplicated in all such forms and that any documentation, 9 * advertising materials, and other materials related to such 10 * distribution and use acknowledge that the software was developed 11 * by the Internet Initiative Japan. The name of the 12 * IIJ may not be used to endorse or promote products derived 13 * from this software without specific prior written permission. 14 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 17 * | 1/* 2 * Written by Toshiharu OHNO (tony-o@iij.ad.jp) 3 * 4 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd. 5 * 6 * Redistribution and use in source and binary forms are permitted 7 * provided that the above copyright notice and this paragraph are 8 * duplicated in all such forms and that any documentation, 9 * advertising materials, and other materials related to such 10 * distribution and use acknowledge that the software was developed 11 * by the Internet Initiative Japan. The name of the 12 * IIJ may not be used to endorse or promote products derived 13 * from this software without specific prior written permission. 14 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 17 * |
18 * $Id: chap.h,v 1.9.2.3 1998/03/01 01:07:41 brian Exp $ | 18 * $Id: chap.h,v 1.9.2.4 1998/04/03 19:26:18 brian Exp $ |
19 * 20 * TODO: 21 */ 22 | 19 * 20 * TODO: 21 */ 22 |
23struct mbuf; |
|
23struct physical; | 24struct physical; |
25struct bundle; |
|
24 25#define CHAP_CHALLENGE 1 26#define CHAP_RESPONSE 2 27#define CHAP_SUCCESS 3 28#define CHAP_FAILURE 4 29 30struct chap { 31 struct authinfo auth; 32 char challenge_data[80]; 33 int challenge_len; 34 unsigned using_MSChap : 1; /* A combination of MD4 & DES */ 35}; 36 37#define auth2chap(a) ((struct chap *)(a)) 38 39extern void ChapInput(struct bundle *, struct mbuf *, struct physical *); 40extern void SendChapChallenge(struct authinfo *, int, struct physical *); | 26 27#define CHAP_CHALLENGE 1 28#define CHAP_RESPONSE 2 29#define CHAP_SUCCESS 3 30#define CHAP_FAILURE 4 31 32struct chap { 33 struct authinfo auth; 34 char challenge_data[80]; 35 int challenge_len; 36 unsigned using_MSChap : 1; /* A combination of MD4 & DES */ 37}; 38 39#define auth2chap(a) ((struct chap *)(a)) 40 41extern void ChapInput(struct bundle *, struct mbuf *, struct physical *); 42extern void SendChapChallenge(struct authinfo *, int, struct physical *); |