| enum{ MAXFILESIZE = 10*1024*1024 }; |
| enum{/* PW status bits */ |
| STA = (1<<1) /* extra SecurID step */ |
| ulong expire; /* expiration time (epoch seconds) */ |
| ushort status; /* Enabled, STA, ... */ |
| ushort failed; /* number of failed login attempts */ |
| char *other; /* other information, e.g. sponsor */ |
| mpint *Hi; /* H(passphrase)^-1 mod p */ |
| /* *client: SConn, client name, passphrase */ |
| /* *server: SConn, (partial) 1st msg, PW entry */ |
| /* *setpass: Username, hashed passphrase, PW entry */ |
| int PAKclient(SConn *, char *, char *, char **); |
| int PAKserver(SConn *, char *, char *, PW **); |
| char *PAK_Hi(char *, char *, mpint *, mpint *); |
| extern char *SECSTORE_DIR; |