[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.1.1.1

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