[BACK]Return to tcfspwdb.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / tcfs

Annotation of src/usr.bin/tcfs/tcfspwdb.h, Revision 1.3

1.3     ! fgsch       1: /*     $OpenBSD$       */
        !             2:
1.1       provos      3: /*
                      4:  *     Transparent Cryptographic File System (TCFS) for NetBSD
                      5:  *     Author and mantainer:   Luigi Catuogno [luicat@tcfs.unisa.it]
                      6:  *
                      7:  *     references:             http://tcfs.dia.unisa.it
                      8:  *                             tcfs-bsd@tcfs.unisa.it
                      9:  */
                     10:
                     11: /*
                     12:  *     Base utility set v0.1
                     13:  */
                     14:
                     15: #ifndef _TCFSPWDB_H_
                     16: #define _TCFSPWDB_H_
                     17:
                     18: #include <sys/param.h>
                     19: #include <unistd.h>
                     20: #include <limits.h>
                     21: #include "tcfsdefines.h"
                     22:
                     23: #define UserLen        LOGIN_NAME_MAX
                     24: #define PassLen        UUKEYSIZE
                     25: #define MaxLineLen     100
                     26: #define MaxUserLen     LOGIN_NAME_MAX
                     27: #define NumOfField   2
                     28:
                     29: typedef struct tcfspwdb_r
                     30: {
1.2       provos     31:        char user[LOGIN_NAME_MAX];
                     32:        char upw[UUKEYSIZE + 1];
1.1       provos     33: } tcfspwdb;
                     34:
                     35: typedef struct tcfsgpwdb_r
                     36: {
1.2       provos     37:        char user[LOGIN_NAME_MAX];
                     38:        char gkey[UUGKEYSIZE + 1];
1.1       provos     39:        gid_t gid;
                     40:        int n;
                     41:        int soglia;
                     42: } tcfsgpwdb;
                     43:
                     44: #define U_DEL  0
                     45: #define U_NEW  1
                     46: #define U_CHG  2
                     47: #define U_CKL  3
                     48:
                     49: #define F_USR                  0x80
                     50: #define F_PWD                  0x40
                     51: #define F_GID                  0x20
                     52: #define F_GKEY                 0x10
                     53: #define F_MEMBERS              0x08
                     54: #define F_THRESHOLD    0x04
                     55:
                     56: #define TCFSPWDBSIZ    1024
                     57:
                     58: #define TCFSPWDB       "/etc/tcfs/tcfspwdb"
                     59: #define TCFSPWDFILE    "/etc/tcfs/tcfspwdb"
                     60: #define TCFSPWDOLD     "/etc/tcfs/tcfspwdb.old"
                     61: #define TCFSPWDLOCK    "/etc/tcfs/tcfspwdb.lock"
                     62: #define TCFSPWDTMP     "/etc/tcfs/tcfstmp"
                     63:
                     64: #define TCFSGPWDB      "/etc/tcfs/tcfsgpwdb"
                     65:
                     66: #endif /* _TCFSPWDB_H_ */