Commit | Line | Data |
---|---|---|
05a0983d GR |
1 | #if defined(__TURBOC__) || defined(__STDC__) || defined(LATTICE) |
2 | #define ANSIPROTO 1 | |
3 | #endif | |
4 | ||
5 | #ifndef __ARGS | |
6 | #ifdef ANSIPROTO | |
7 | #define __ARGS(x) x | |
8 | #else | |
9 | #define __ARGS(x) () | |
10 | #endif | |
11 | #endif | |
12 | ||
13 | /* Server-side data structure for reading keys file during login */ | |
14 | struct skey { | |
15 | FILE *keyfile; | |
16 | char buf[256]; | |
17 | char *logname; | |
18 | int n; | |
19 | char *seed; | |
20 | char *val; | |
21 | long recstart; /*needed so reread of buffer is efficient*/ | |
22 | ||
23 | ||
24 | }; | |
25 | ||
26 | /* Client-side structure for scanning data stream for challenge */ | |
27 | struct mc { | |
28 | char buf[256]; | |
29 | int skip; | |
30 | int cnt; | |
31 | }; | |
32 | ||
33 | void f __ARGS((char *x)); | |
34 | int keycrunch __ARGS((char *result,char *seed,char *passwd)); | |
35 | char *btoe __ARGS((char *engout,char *c)); | |
36 | char *put8 __ARGS((char *out,char *s)); | |
37 | int etob __ARGS((char *out,char *e)); | |
38 | void rip __ARGS((char *buf)); | |
39 | int skeychallenge __ARGS((struct skey *mp,char *name, char *challenge)); | |
40 | int skeylookup __ARGS((struct skey *mp,char *name)); | |
41 | int skeyverify __ARGS((struct skey *mp,char *response)); | |
42 | int skeyverify __ARGS((struct skey *mp,char *response)); |