summaryrefslogtreecommitdiff
path: root/internal/configfile/feature_flags.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-10-21 09:58:37 +0200
committerJakob Unterwurzacher2021-10-21 14:55:30 +0200
commitd583bdb79e6f05bce2451a7e220e553209da4c1d (patch)
tree9d2fa4671278b1bc9d0202a267598f669628d70c /internal/configfile/feature_flags.go
parentdc32710045f6f46913ae336b6fb77bf90b6bdb85 (diff)
configfile: add LongNameMax support
Feature flag + numeric paramater https://github.com/rfjakob/gocryptfs/issues/499
Diffstat (limited to 'internal/configfile/feature_flags.go')
-rw-r--r--internal/configfile/feature_flags.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/configfile/feature_flags.go b/internal/configfile/feature_flags.go
index e28abd6..e45b20c 100644
--- a/internal/configfile/feature_flags.go
+++ b/internal/configfile/feature_flags.go
@@ -16,6 +16,9 @@ const (
FlagGCMIV128
// FlagLongNames allows file names longer than 176 bytes.
FlagLongNames
+ // FlagLongNameMax sets a custom name length limit, names longer than that
+ // will be hashed.
+ FlagLongNameMax
// FlagAESSIV selects an AES-SIV based crypto backend.
FlagAESSIV
// FlagRaw64 enables raw (unpadded) base64 encoding for file names
@@ -40,6 +43,7 @@ var knownFlags = map[flagIota]string{
FlagEMENames: "EMENames",
FlagGCMIV128: "GCMIV128",
FlagLongNames: "LongNames",
+ FlagLongNameMax: "LongNameMax",
FlagAESSIV: "AESSIV",
FlagRaw64: "Raw64",
FlagHKDF: "HKDF",