*/
#ifndef lint
-static char rcsid[] = "$Id: chap.c,v 1.8 1995/07/04 12:32:26 paulus Exp $";
+static char rcsid[] = "$Id: chap.c,v 1.9 1995/12/18 03:46:19 paulus Exp $";
#endif
/*
#include "chap.h"
#include "md5.h"
+struct protent chap_protent = {
+ PPP_CHAP, ChapInit, ChapInput, ChapProtocolReject,
+ ChapLowerUp, ChapLowerDown, NULL, NULL,
+ ChapPrintPkt, NULL, 1, "CHAP"
+};
+
chap_state chap[NUM_PPP]; /* CHAP state; one for each unit */
static void ChapChallengeTimeout __P((caddr_t));
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: chap.h,v 1.3 1994/09/21 06:47:37 paulus Exp $
+ * $Id: chap.h,v 1.4 1995/12/18 03:46:21 paulus Exp $
*/
#ifndef __CHAP_INCLUDE__
int ChapPrintPkt __P((u_char *, int,
void (*) __P((void *, char *, ...)), void *));
+extern struct protent chap_protent;
+
#define __CHAP_INCLUDE__
#endif /* __CHAP_INCLUDE__ */
*/
#ifndef lint
-static char rcsid[] = "$Id: upap.c,v 1.6 1995/06/12 12:02:24 paulus Exp $";
+static char rcsid[] = "$Id: upap.c,v 1.7 1995/12/18 03:46:48 paulus Exp $";
#endif
/*
#include "pppd.h"
#include "upap.h"
+struct protent pap_protent = {
+ PPP_PAP, upap_init, upap_input, upap_protrej,
+ upap_lowerup, upap_lowerdown, NULL, NULL,
+ upap_printpkt, NULL, 1, "PAP"
+};
upap_state upap[NUM_PPP]; /* UPAP state; one for each unit */
-
static void upap_timeout __P((caddr_t));
static void upap_reqtimeout __P((caddr_t));
static void upap_rauthreq __P((upap_state *, u_char *, int, int));
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: upap.h,v 1.4 1995/06/12 12:02:25 paulus Exp $
+ * $Id: upap.h,v 1.5 1995/12/18 03:46:50 paulus Exp $
*/
/*
void upap_protrej __P((int));
int upap_printpkt __P((u_char *, int,
void (*) __P((void *, char *, ...)), void *));
+
+extern struct protent pap_protent;