diff options
author | rsc <devnull@localhost> | 2005-02-13 05:58:45 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-02-13 05:58:45 +0000 |
commit | 0f8ec41b0ae522b73085fa1662461e6351ba7e54 (patch) | |
tree | 2d54cfd8208bdd903273ccc7df889677cf7fe8d5 /src/cmd/secstore/secstore.h | |
parent | 7637c81af02c49ef508b946dfdec39f757a658d4 (diff) | |
download | plan9port-0f8ec41b0ae522b73085fa1662461e6351ba7e54.tar.gz plan9port-0f8ec41b0ae522b73085fa1662461e6351ba7e54.tar.bz2 plan9port-0f8ec41b0ae522b73085fa1662461e6351ba7e54.zip |
moving to auth
Diffstat (limited to 'src/cmd/secstore/secstore.h')
-rw-r--r-- | src/cmd/secstore/secstore.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/cmd/secstore/secstore.h b/src/cmd/secstore/secstore.h deleted file mode 100644 index dbd2ec9c..00000000 --- a/src/cmd/secstore/secstore.h +++ /dev/null @@ -1,31 +0,0 @@ -enum{ MAXFILESIZE = 10*1024*1024 }; - -enum{// PW status bits - Enabled = (1<<0), - STA = (1<<1), // extra SecurID step -}; - -typedef struct PW { - char *id; // user id - 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 -} PW; - -PW *getPW(char *, int); -int putPW(PW *); -void freePW(PW *); - -// *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 *); - -#define LOG "secstore" - -extern char *SECSTORE_DIR; - |