diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2000-06-18 22:07:26 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2000-06-18 22:07:26 +0000 |
commit | 48893562fdfa12c4f376d2556da18e817a34484f (patch) | |
tree | 033e9aaa47f5617ba6ffbcf7e071ffb8f8f71b07 /usr.bin/tcfs/tcfspwdb.h | |
parent | 47bc7a26b81967e77c0f021899f1544966df67e2 (diff) |
Initial import of very much rewritten TCFS userland. This code is still
nasty.
Diffstat (limited to 'usr.bin/tcfs/tcfspwdb.h')
-rw-r--r-- | usr.bin/tcfs/tcfspwdb.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/usr.bin/tcfs/tcfspwdb.h b/usr.bin/tcfs/tcfspwdb.h new file mode 100644 index 00000000000..899b37ebf22 --- /dev/null +++ b/usr.bin/tcfs/tcfspwdb.h @@ -0,0 +1,64 @@ +/* + * Transparent Cryptographic File System (TCFS) for NetBSD + * Author and mantainer: Luigi Catuogno [luicat@tcfs.unisa.it] + * + * references: http://tcfs.dia.unisa.it + * tcfs-bsd@tcfs.unisa.it + */ + +/* + * Base utility set v0.1 + */ + +#ifndef _TCFSPWDB_H_ +#define _TCFSPWDB_H_ + +#include <sys/param.h> +#include <unistd.h> +#include <limits.h> +#include "tcfsdefines.h" + +#define UserLen LOGIN_NAME_MAX +#define PassLen UUKEYSIZE +#define MaxLineLen 100 +#define MaxUserLen LOGIN_NAME_MAX +#define NumOfField 2 + +typedef struct tcfspwdb_r +{ + char user[UserLen]; + char upw[PassLen]; +} tcfspwdb; + +typedef struct tcfsgpwdb_r +{ + char user[UserLen]; + char gkey[PassLen]; + gid_t gid; + int n; + int soglia; +} tcfsgpwdb; + +#define U_DEL 0 +#define U_NEW 1 +#define U_CHG 2 +#define U_CKL 3 + +#define F_USR 0x80 +#define F_PWD 0x40 +#define F_GID 0x20 +#define F_GKEY 0x10 +#define F_MEMBERS 0x08 +#define F_THRESHOLD 0x04 + +#define TCFSPWDBSIZ 1024 + +#define TCFSPWDB "/etc/tcfs/tcfspwdb" +#define TCFSPWDFILE "/etc/tcfs/tcfspwdb" +#define TCFSPWDOLD "/etc/tcfs/tcfspwdb.old" +#define TCFSPWDLOCK "/etc/tcfs/tcfspwdb.lock" +#define TCFSPWDTMP "/etc/tcfs/tcfstmp" + +#define TCFSGPWDB "/etc/tcfs/tcfsgpwdb" + +#endif /* _TCFSPWDB_H_ */ |