| @@ -1,30 +1,32 @@ | | | @@ -1,30 +1,32 @@ |
1 | /* $NetBSD: skey.h,v 1.9 2005/02/04 16:12:13 perry Exp $ */ | | 1 | /* $NetBSD: skey.h,v 1.10 2016/01/22 23:25:51 dholland Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * S/KEY v1.1b (skey.h) | | 4 | * S/KEY v1.1b (skey.h) |
5 | * | | 5 | * |
6 | * Authors: | | 6 | * Authors: |
7 | * Neil M. Haller <nmh@thumper.bellcore.com> | | 7 | * Neil M. Haller <nmh@thumper.bellcore.com> |
8 | * Philip R. Karn <karn@chicago.qualcomm.com> | | 8 | * Philip R. Karn <karn@chicago.qualcomm.com> |
9 | * John S. Walden <jsw@thumper.bellcore.com> | | 9 | * John S. Walden <jsw@thumper.bellcore.com> |
10 | * | | 10 | * |
11 | * Modifications: | | 11 | * Modifications: |
12 | * Scott Chasin <chasin@crimelab.com> | | 12 | * Scott Chasin <chasin@crimelab.com> |
13 | * Todd C. Miller <Todd.Miller@courtesan.com> | | 13 | * Todd C. Miller <Todd.Miller@courtesan.com> |
14 | * | | 14 | * |
15 | * Main client header | | 15 | * Main client header |
16 | */ | | 16 | */ |
17 | | | 17 | |
| | | 18 | #include <stdio.h> |
| | | 19 | |
18 | /* Server-side data structure for reading keys file during login */ | | 20 | /* Server-side data structure for reading keys file during login */ |
19 | struct skey { | | 21 | struct skey { |
20 | FILE *keyfile; | | 22 | FILE *keyfile; |
21 | char buf[256]; | | 23 | char buf[256]; |
22 | char *logname; | | 24 | char *logname; |
23 | int n; | | 25 | int n; |
24 | char *seed; | | 26 | char *seed; |
25 | char *val; | | 27 | char *val; |
26 | long recstart; /* needed so reread of buffer is efficient */ | | 28 | long recstart; /* needed so reread of buffer is efficient */ |
27 | }; | | 29 | }; |
28 | | | 30 | |
29 | /* Client-side structure for scanning data stream for challenge */ | | 31 | /* Client-side structure for scanning data stream for challenge */ |
30 | struct mc { | | 32 | struct mc { |