|
|
1.1.1.5 root 1: /*
1.1.1.6 root 2: Copyright (c) 2005-2008 TrueCrypt Foundation. All rights reserved.
1.1.1.5 root 3:
1.1.1.6 root 4: Governed by the TrueCrypt License 2.4 the full text of which is contained
1.1.1.5 root 5: in the file License.txt included in TrueCrypt binary and source code
6: distribution packages.
7: */
8:
1.1.1.2 root 9: #ifndef COMMON_H
10: #define COMMON_H
1.1 root 11:
1.1.1.2 root 12: #include "Crypto.h"
13:
14: /* Volume types */
15: enum
16: {
17: VOLUME_TYPE_NORMAL = 0,
18: VOLUME_TYPE_HIDDEN,
19: NBR_VOLUME_TYPES
20: };
21:
22: /* Prop volume types */
23: enum
24: {
25: PROP_VOL_TYPE_NORMAL = 0,
26: PROP_VOL_TYPE_HIDDEN,
27: PROP_VOL_TYPE_OUTER, /* Outer/normal (hidden volume protected) */
28: PROP_VOL_TYPE_OUTER_VOL_WRITE_PREVENTED, /* Outer/normal (hidden volume protected AND write already prevented) */
1.1.1.6 root 29: PROP_VOL_TYPE_SYSTEM,
1.1.1.2 root 30: PROP_NBR_VOLUME_TYPES
31: };
32:
33: /* Hidden volume protection status */
34: enum
35: {
36: HIDVOL_PROT_STATUS_NONE = 0,
37: HIDVOL_PROT_STATUS_ACTIVE,
38: HIDVOL_PROT_STATUS_ACTION_TAKEN /* Active + action taken (write operation has already been denied) */
39: };
40:
41: typedef struct
42: {
1.1 root 43: BOOL ReadOnly;
44: BOOL Removable;
1.1.1.2 root 45: BOOL ProtectHiddenVolume;
46: BOOL PreserveTimestamp;
1.1.1.7 ! root 47: BOOL PartitionInInactiveSysEncScope; /* If TRUE, we are to attempt to mount a partition located on an encrypted system drive without pre-boot authentication. */
1.1.1.2 root 48: Password ProtectedHidVolPassword; /* Password of hidden volume to protect against overwriting */
1.1 root 49: } MountOptions;
1.1.1.2 root 50:
51: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.