opie.h (270120) | opie.h (273277) |
---|---|
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-1999 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 --- 23 unchanged lines hidden (view full) --- 32 definition et al. Multiple-include protection. Added struct 33 utsname fake. Got rid of gethostname() cruft. Moved UINT4 34 here. Provide for *seek whence values. Move MDx context here 35 and unify. Re-did prototypes. 36 Modified at NRL for OPIE 2.0. 37 Written at Bellcore for the S/Key Version 1 software distribution 38 (skey.h). 39 | 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-1999 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 --- 23 unchanged lines hidden (view full) --- 32 definition et al. Multiple-include protection. Added struct 33 utsname fake. Got rid of gethostname() cruft. Moved UINT4 34 here. Provide for *seek whence values. Move MDx context here 35 and unify. Re-did prototypes. 36 Modified at NRL for OPIE 2.0. 37 Written at Bellcore for the S/Key Version 1 software distribution 38 (skey.h). 39 |
40$FreeBSD: stable/10/contrib/opie/opie.h 270120 2014-08-18 02:13:45Z ache $ | 40$FreeBSD: stable/10/contrib/opie/opie.h 273277 2014-10-19 12:11:25Z antoine $ |
41*/ 42#ifndef _OPIE_H 43#define _OPIE_H 1 44 45struct opie { 46 int opie_flags; 47 char opie_buf[256]; 48 char *opie_principal; --- 15 unchanged lines hidden (view full) --- 64#define OPIE_SECRET_MAX 127 65 66/* Minimum length of a seed */ 67#define OPIE_SEED_MIN 5 68 69/* Maximum length of a seed */ 70#define OPIE_SEED_MAX 16 71 | 41*/ 42#ifndef _OPIE_H 43#define _OPIE_H 1 44 45struct opie { 46 int opie_flags; 47 char opie_buf[256]; 48 char *opie_principal; --- 15 unchanged lines hidden (view full) --- 64#define OPIE_SECRET_MAX 127 65 66/* Minimum length of a seed */ 67#define OPIE_SEED_MIN 5 68 69/* Maximum length of a seed */ 70#define OPIE_SEED_MAX 16 71 |
72/* Max length of hash algorithm name (md4/md5/sha1) */ 73#define OPIE_HASHNAME_MAX 4 | 72/* Max length of hash algorithm name (md4/md5) */ 73#define OPIE_HASHNAME_MAX 3 |
74 | 74 |
75/* Maximum length of a challenge (otp-md? 9999 seed ext) */ 76#define OPIE_CHALLENGE_MAX (4+OPIE_HASHNAME_MAX+1+4+1+OPIE_SEED_MAX+1+3) | 75/* Maximum length of a challenge (otp-md? 9999 seed) */ 76#define OPIE_CHALLENGE_MAX (4+OPIE_HASHNAME_MAX+1+4+1+OPIE_SEED_MAX) |
77 78/* Maximum length of a response that we allow */ 79#define OPIE_RESPONSE_MAX (9+1+19+1+9+OPIE_SEED_MAX+1+19+1+19+1+19) 80 81/* Maximum length of a principal (read: user name) */ 82#define OPIE_PRINCIPAL_MAX 32 83 84/* Maximum sequence number */ --- 91 unchanged lines hidden --- | 77 78/* Maximum length of a response that we allow */ 79#define OPIE_RESPONSE_MAX (9+1+19+1+9+OPIE_SEED_MAX+1+19+1+19+1+19) 80 81/* Maximum length of a principal (read: user name) */ 82#define OPIE_PRINCIPAL_MAX 32 83 84/* Maximum sequence number */ --- 91 unchanged lines hidden --- |