2016-02-06 19:27:59 +01:00
|
|
|
package fusefrontend
|
2015-11-28 16:52:57 +01:00
|
|
|
|
2016-09-20 21:58:04 +02:00
|
|
|
import (
|
|
|
|
"github.com/rfjakob/gocryptfs/internal/cryptocore"
|
|
|
|
)
|
|
|
|
|
2016-10-02 06:14:18 +02:00
|
|
|
// Args is a container for arguments that are passed from main() to fusefrontend
|
2015-11-28 16:52:57 +01:00
|
|
|
type Args struct {
|
2017-04-01 17:19:15 +02:00
|
|
|
Masterkey []byte
|
|
|
|
// Cipherdir is the backing storage directory (absolute path).
|
|
|
|
// For reverse mode, Cipherdir actually contains *plaintext* files.
|
2015-11-29 21:55:20 +01:00
|
|
|
Cipherdir string
|
2017-03-05 17:08:16 +01:00
|
|
|
CryptoBackend cryptocore.AEADTypeEnum
|
2015-11-28 16:52:57 +01:00
|
|
|
PlaintextNames bool
|
2016-02-06 22:54:14 +01:00
|
|
|
LongNames bool
|
2016-06-26 19:18:13 +02:00
|
|
|
// Should we chown a file after it has been created?
|
|
|
|
// This only makes sense if (1) allow_other is set and (2) we run as root.
|
|
|
|
PreserveOwner bool
|
2016-10-08 20:57:38 +02:00
|
|
|
// ConfigCustom is true when the user select a non-default config file
|
|
|
|
// location. If it is false, reverse mode maps ".gocryptfs.reverse.conf"
|
|
|
|
// to "gocryptfs.conf" in the plaintext dir.
|
|
|
|
ConfigCustom bool
|
2016-11-01 18:43:22 +01:00
|
|
|
// Raw64 is true when RawURLEncoding (without padding) should be used for
|
2017-03-05 21:59:55 +01:00
|
|
|
// file names.
|
|
|
|
// Corresponds to the Raw64 feature flag introduced in gocryptfs v1.2.
|
2016-11-01 18:43:22 +01:00
|
|
|
Raw64 bool
|
2016-11-24 22:36:04 +01:00
|
|
|
// NoPrealloc disables automatic preallocation before writing
|
|
|
|
NoPrealloc bool
|
2017-03-05 21:59:55 +01:00
|
|
|
// Use HKDF key derivation.
|
|
|
|
// Corresponds to the HKDF feature flag introduced in gocryptfs v1.3.
|
|
|
|
HKDF bool
|
2017-03-18 16:01:50 +01:00
|
|
|
// Try to serialize read operations, "-serialize_reads"
|
|
|
|
SerializeReads bool
|
2017-04-08 02:09:28 +02:00
|
|
|
// Force decode even if integrity check fails (openSSL only)
|
|
|
|
ForceDecode bool
|
2015-11-28 16:52:57 +01:00
|
|
|
}
|