]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - include/skey.h
The vn driver from 4.4_lite
[FreeBSD/FreeBSD.git] / include / skey.h
1 #ifndef _SKEY_H_
2 #define _SKEY_H_
3
4 #include <sys/cdefs.h>
5
6 /* Server-side data structure for reading keys file during login */
7 struct skey {
8         FILE *keyfile;
9         char buf[256];
10         char *logname;
11         int n;
12         char *seed;
13         char *val;
14         long    recstart; /*needed so reread of buffer is efficient*/
15
16
17 };
18
19 /* Client-side structure for scanning data stream for challenge */
20 struct mc {
21         char buf[256];
22         int skip;
23         int cnt;
24 };
25
26 void f __P((char *x));
27 int keycrunch __P((char *result,char *seed,char *passwd));
28 char *btoe __P((char *engout,char *c));
29 char *put8 __P((char *out,char *s));
30 int etob __P((char *out,char *e));
31 void rip __P((char *buf));
32 int skeychallenge __P((struct skey *mp,char *name, char *challenge));
33 int skeylookup __P((struct skey *mp,char *name));
34 int skeyverify __P((struct skey *mp,char *response));
35
36 #endif /* _SKEY_H_ */