blob: c12e1b0acf379d1803907451d201e1cc4e7aa42c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/* $OpenBSD: tcfsdefines.h,v 1.4 2000/06/19 20:35:47 fgsch Exp $ */
/*
* 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 GKEYSIZE (KEYSIZE + KEYSIZE/8)
#define UUGKEYSIZE ((GKEYSIZE / 3 + (GKEYSIZE % 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_ */
|