1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Compile error occured by missing auth.h/cdefs.h

Reviewed by:	amurai@spec.co.jp
This commit is contained in:
Atsushi Murai 1995-02-27 03:18:28 +00:00
parent d71413016a
commit b808c7565b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6756
8 changed files with 81 additions and 6 deletions

42
usr.sbin/ppp/auth.h Normal file
View File

@ -0,0 +1,42 @@
/*
* Written by Toshiharu OHNO (tony-o@iij.ad.jp)
*
* Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
*
* Redistribution and use in source and binary forms are permitted
* provided that the above copyright notice and this paragraph are
* duplicated in all such forms and that any documentation,
* advertising materials, and other materials related to such
* distribution and use acknowledge that the software was developed
* by the Internet Initiative Japan. The name of the
* IIJ may not be used to endorse or promote products derived
* from this software without specific prior written permission.
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* $Id:$
*
* TODO:
*/
#ifndef _AUTH_H_
#define _AUTH_H_
typedef enum { VALID, INVALID, NOT_FOUND } LOCAL_AUTH_VALID;
LOCAL_AUTH_VALID LocalAuthValidate( char *, char *, char *);
struct authinfo {
void (*ChallengeFunc)();
struct pppTimer authtimer;
int retry;
int id;
};
extern struct authinfo AuthPapInfo;
extern struct authinfo AuthChapInfo;
extern void SendPapChallenge __P((int));
extern void SendChapChallenge __P((int));
extern void StopAuthTimer __P((struct authinfo *));
extern void StartAuthChallenge __P((struct authinfo *));
#endif

33
usr.sbin/ppp/cdefs.h Normal file
View File

@ -0,0 +1,33 @@
/*
* Written by Toshiharu OHNO (tony-o@iij.ad.jp)
*
* Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
*
* Redistribution and use in source and binary forms are permitted
* provided that the above copyright notice and this paragraph are
* duplicated in all such forms and that any documentation,
* advertising materials, and other materials related to such
* distribution and use acknowledge that the software was developed
* by the Internet Initiative Japan. The name of the
* IIJ may not be used to endorse or promote products derived
* from this software without specific prior written permission.
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* $Id:$
*
* TODO:
*/
#ifndef __P
#ifdef __bsdi__
#include <sys/cdefs.h>
#else
#ifdef __STDC__
#define __P(arg) arg
#else
#define __P(arg) ()
#endif /* __STDC__ */
#endif /* __bsdi__ */
#endif /* __P */

View File

@ -26,7 +26,7 @@
#include "defs.h"
#include <netinet/in.h>
#include "timeout.h"
#include <sys/cdefs.h>
#include "cdefs.h"
/*
* State of machine

View File

@ -22,7 +22,7 @@
#ifndef _LCP_H_
#define _LPC_H_
#include <sys/cdefs.h>
#include "cdefs.h"
struct lcpstate {
u_long his_mru;

View File

@ -22,7 +22,7 @@
#ifndef _LCPPROTO_H_
#define _LCPPROTO_H_
#include <sys/cdefs.h>
#include "cdefs.h"
/*
* Definition of protocol numbers

View File

@ -22,7 +22,7 @@
#ifndef _LOG_H_
#define _LOG_H_
#include <sys/cdefs.h>
#include "cdefs.h"
/*
* Definition of log level
*/

View File

@ -24,7 +24,7 @@
#define _MODEM_H_
#include <termios.h>
#include "mbuf.h"
#include <sys/cdefs.h>
#include "cdefs.h"
extern int RawModem __P((int));
extern void UnrawModem __P((int));

View File

@ -22,7 +22,7 @@
#ifndef _TIMEOUT_H_
#define _TIMEOUT_H_
#include <sys/cdefs.h>
#include "cdefs.h"
#define TICKUNIT 100000 /* Unit in usec */
#define SECTICKS (1000000/TICKUNIT)