opie.h (29972) | opie.h (59121) |
---|---|
1/* opie.h: Data structures and values for the OPIE authentication 2 system that a program might need. 3 4%%% portions-copyright-cmetz-96 | 1/* opie.h: Data structures and values for the OPIE authentication 2 system that a program might need. 3 4%%% portions-copyright-cmetz-96 |
5Portions of this software are Copyright 1996-1997 by Craig Metz, All Rights | 5Portions of this software are Copyright 1996-1998 by Craig Metz, All Rights |
6Reserved. The Inner Net License Version 2 applies to these portions of 7the software. 8You should have received a copy of the license with this software. If 9you didn't get a copy, you may request one from <license@inner.net>. 10 11Portions of this software are Copyright 1995 by Randall Atkinson and Dan 12McDonald, All Rights Reserved. All Rights under this copyright are assigned 13to the U.S. Naval Research Laboratory (NRL). The NRL Copyright Notice and 14License Agreement applies to this software. 15 16 History: 17 | 6Reserved. The Inner Net License Version 2 applies to these portions of 7the software. 8You should have received a copy of the license with this software. If 9you didn't get a copy, you may request one from <license@inner.net>. 10 11Portions of this software are Copyright 1995 by Randall Atkinson and Dan 12McDonald, All Rights Reserved. All Rights under this copyright are assigned 13to the U.S. Naval Research Laboratory (NRL). The NRL Copyright Notice and 14License Agreement applies to this software. 15 16 History: 17 |
18 Modified by cmetz for OPIE 2.32. Added symbolic flag names for 19 opiepasswd(). Added __opieparsechallenge() prototype. |
|
18 Modified by cmetz for OPIE 2.31. Removed active attack protection. 19 Modified by cmetz for OPIE 2.3. Renamed PTR to VOIDPTR. Added 20 re-init key and extension file fields to struct opie. Added 21 opie_ prefix on struct opie members. Added opie_flags field 22 and definitions. Added more prototypes. Changed opiehash() 23 prototype. 24 Modified by cmetz for OPIE 2.22. Define __P correctly if this file 25 is included in a third-party program. 26 Modified by cmetz for OPIE 2.2. Re-did prototypes. Added FUNCTION 27 definition et al. Multiple-include protection. Added struct 28 utsname fake. Got rid of gethostname() cruft. Moved UINT4 29 here. Provide for *seek whence values. Move MDx context here 30 and unify. Re-did prototypes. 31 Modified at NRL for OPIE 2.0. 32 Written at Bellcore for the S/Key Version 1 software distribution 33 (skey.h). | 20 Modified by cmetz for OPIE 2.31. Removed active attack protection. 21 Modified by cmetz for OPIE 2.3. Renamed PTR to VOIDPTR. Added 22 re-init key and extension file fields to struct opie. Added 23 opie_ prefix on struct opie members. Added opie_flags field 24 and definitions. Added more prototypes. Changed opiehash() 25 prototype. 26 Modified by cmetz for OPIE 2.22. Define __P correctly if this file 27 is included in a third-party program. 28 Modified by cmetz for OPIE 2.2. Re-did prototypes. Added FUNCTION 29 definition et al. Multiple-include protection. Added struct 30 utsname fake. Got rid of gethostname() cruft. Moved UINT4 31 here. Provide for *seek whence values. Move MDx context here 32 and unify. Re-did prototypes. 33 Modified at NRL for OPIE 2.0. 34 Written at Bellcore for the S/Key Version 1 software distribution 35 (skey.h). |
36 37$FreeBSD: head/contrib/opie/opie.h 59121 2000-04-10 11:18:54Z kris $ |
|
34*/ 35#ifndef _OPIE_H 36#define _OPIE_H 1 37 38struct opie { 39 int opie_flags; 40 char opie_buf[256]; 41 char *opie_principal; --- 70 unchanged lines hidden (view full) --- 112__BEGIN_DECLS 113struct utmp; 114int __opiegetutmpentry __P((char *, struct utmp *)); 115#ifdef EOF 116FILE *__opieopen __P((char *, int, int)); 117#endif /* EOF */ 118int __opiereadrec __P((struct opie *)); 119int __opiewriterec __P((struct opie *)); | 38*/ 39#ifndef _OPIE_H 40#define _OPIE_H 1 41 42struct opie { 43 int opie_flags; 44 char opie_buf[256]; 45 char *opie_principal; --- 70 unchanged lines hidden (view full) --- 116__BEGIN_DECLS 117struct utmp; 118int __opiegetutmpentry __P((char *, struct utmp *)); 119#ifdef EOF 120FILE *__opieopen __P((char *, int, int)); 121#endif /* EOF */ 122int __opiereadrec __P((struct opie *)); 123int __opiewriterec __P((struct opie *)); |
124int __opieparsechallenge __P((char *buffer, int *algorithm, int *sequence, char **seed, int *exts)); |
|
120__END_DECLS 121#endif /* _OPIE */ | 125__END_DECLS 126#endif /* _OPIE */ |
127 128#define OPIEPASSWD_CONSOLE 1 129#define OPIEPASSWD_FORCE 2 130 |
|
122#endif /* _OPIE_H */ | 131#endif /* _OPIE_H */ |