summaryrefslogtreecommitdiff
path: root/usr.bin/tcfs/tcfsdefines.h
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>2000-06-18 22:07:26 +0000
committerNiels Provos <provos@cvs.openbsd.org>2000-06-18 22:07:26 +0000
commit48893562fdfa12c4f376d2556da18e817a34484f (patch)
tree033e9aaa47f5617ba6ffbcf7e071ffb8f8f71b07 /usr.bin/tcfs/tcfsdefines.h
parent47bc7a26b81967e77c0f021899f1544966df67e2 (diff)
Initial import of very much rewritten TCFS userland. This code is still
nasty.
Diffstat (limited to 'usr.bin/tcfs/tcfsdefines.h')
-rw-r--r--usr.bin/tcfs/tcfsdefines.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/usr.bin/tcfs/tcfsdefines.h b/usr.bin/tcfs/tcfsdefines.h
new file mode 100644
index 00000000000..1841bd5a2de
--- /dev/null
+++ b/usr.bin/tcfs/tcfsdefines.h
@@ -0,0 +1,34 @@
+/*
+ * 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 _TCFSDEFINES_H_
+#define _TCFSDEFINES_H_
+
+#define UUKEYSIZE ((KEYSIZE / 3 + (KEYSIZE % 3 ? 1 : 0)) * 4)
+#define TRUE 1
+#define FALSE 0
+#define ONE 1 /* decrement key counter by 1 */
+#define ALL 0 /* decrement key counter to 0 */
+#define SET 1 /* set permanent flag */
+#define UNSET 0 /* unset permanent flag */
+#define NONE 2 /* no one of the previous */
+
+#define USERKEY 0
+#define GROUPKEY 1
+
+typedef struct {
+ u_int32_t flag;
+} tcfs_flags;
+
+#endif /* _TCFSDEFINES_H_ */
+
+