Deleted Added
full compact
5c5
< Portions of this software are Copyright 1996-1998 by Craig Metz, All Rights
---
> Portions of this software are Copyright 1996-1999 by Craig Metz, All Rights
17a18,20
> Modified by cmetz for OPIE 2.4. Added sequence number limits. Added
> struct opie_otpkey and made many functions use it. Added
> opiestrncpy(). Include header with libmissing prototypes.
37c40
< $FreeBSD: head/contrib/opie/opie.h 60572 2000-05-15 04:20:54Z kris $
---
> $FreeBSD: head/contrib/opie/opie.h 92914 2002-03-21 23:42:52Z markm $
55a59
> #ifndef OPIE_SECRET_MIN
56a61
> #endif /* OPIE_SECRET_MIN */
79c84,87
< #include <sys/cdefs.h>
---
> /* Maximum sequence number */
> #ifndef OPIE_SEQUENCE_MAX
> #define OPIE_SEQUENCE_MAX 9999
> #endif /* OPIE_SEQUENCE_MAX */
80a89,107
> /* Restricted sequence number */
> #ifndef OPIE_SEQUENCE_RESTRICT
> #define OPIE_SEQUENCE_RESTRICT 9
> #endif /* OPIE_SEQUENCE_RESTRICT */
>
> #define UINT4 u_int32_t
>
> struct opie_otpkey {
> UINT4 words[2];
> };
>
> #ifndef SEEK_SET
> #define SEEK_SET 0
> #endif /* SEEK_SET */
>
> #ifndef SEEK_END
> #define SEEK_END 2
> #endif /* SEEK_END */
>
86c113
< char *opieatob8 __P((char *,char *));
---
> char *opieatob8 __P((struct opie_otpkey *, char *));
88,91c115,118
< char *opiebtoa8 __P((char *,char *));
< char *opiebtoe __P((char *,char *));
< char *opiebtoh __P((char *,char *));
< int opieetob __P((char *,char *));
---
> char *opiebtoa8 __P((char *, struct opie_otpkey *));
> char *opiebtoe __P((char *, struct opie_otpkey *));
> char *opiebtoh __P((char *, struct opie_otpkey *));
> int opieetob __P((struct opie_otpkey *, char *));
95c122
< void opiehash __P((void *, unsigned));
---
> void opiehash __P((struct opie_otpkey *, unsigned));
97c124
< int opiekeycrunch __P((int, char *, char *, char *));
---
> int opiekeycrunch __P((int, struct opie_otpkey *, char *, char *));
124d150
< #define UINT4 u_int32_t
135a162,169
>
> #define opiestrncpy(dst, src, n) \
> do { \
> strncpy(dst, src, n-1); \
> dst[n-1] = 0; \
> } while(0)
>
> /* #include "missing.h" */