|
|
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.10! root 4: Governed by the TrueCrypt License 2.7 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: {
1.1.1.8 root 17: TC_VOLUME_TYPE_NORMAL = 0,
18: TC_VOLUME_TYPE_HIDDEN,
19: TC_VOLUME_TYPE_HIDDEN_LEGACY,
20: TC_VOLUME_TYPE_COUNT
1.1.1.2 root 21: };
22:
23: /* Prop volume types */
24: enum
25: {
26: PROP_VOL_TYPE_NORMAL = 0,
27: PROP_VOL_TYPE_HIDDEN,
28: PROP_VOL_TYPE_OUTER, /* Outer/normal (hidden volume protected) */
29: PROP_VOL_TYPE_OUTER_VOL_WRITE_PREVENTED, /* Outer/normal (hidden volume protected AND write already prevented) */
1.1.1.6 root 30: PROP_VOL_TYPE_SYSTEM,
1.1.1.2 root 31: PROP_NBR_VOLUME_TYPES
32: };
33:
34: /* Hidden volume protection status */
35: enum
36: {
37: HIDVOL_PROT_STATUS_NONE = 0,
38: HIDVOL_PROT_STATUS_ACTIVE,
39: HIDVOL_PROT_STATUS_ACTION_TAKEN /* Active + action taken (write operation has already been denied) */
40: };
41:
42: typedef struct
43: {
1.1 root 44: BOOL ReadOnly;
45: BOOL Removable;
1.1.1.2 root 46: BOOL ProtectHiddenVolume;
47: BOOL PreserveTimestamp;
1.1.1.7 root 48: 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 49: Password ProtectedHidVolPassword; /* Password of hidden volume to protect against overwriting */
1.1.1.8 root 50: BOOL UseBackupHeader;
1.1.1.9 root 51: BOOL RecoveryMode;
1.1 root 52: } MountOptions;
1.1.1.2 root 53:
54: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.