summaryrefslogtreecommitdiff
path: root/internal/configfile/config_file.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-03-05 18:13:56 +0100
committerJakob Unterwurzacher2017-03-05 18:13:56 +0100
commitdecda6d2559192b09289b5328b9446d2b6fa7ce0 (patch)
treec6f57c4786faad3813703500501ab948d4ee463a /internal/configfile/config_file.go
parentb7328815183b7a4ff37156085fb78e8e86aff165 (diff)
configfile: switch on Raw64 by default
As we have dropped Go 1.4 compatibility already, and will add a new feature flag for gocryptfs v1.3 anyway, this is a good time to enable Raw64 as well.
Diffstat (limited to 'internal/configfile/config_file.go')
-rw-r--r--internal/configfile/config_file.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/configfile/config_file.go b/internal/configfile/config_file.go
index d28b1d4..5bb021c 100644
--- a/internal/configfile/config_file.go
+++ b/internal/configfile/config_file.go
@@ -50,7 +50,7 @@ type ConfFile struct {
// CreateConfFile - create a new config with a random key encrypted with
// "password" and write it to "filename".
// Uses scrypt with cost parameter logN.
-func CreateConfFile(filename string, password string, plaintextNames bool, logN int, creator string, aessiv bool, raw64 bool) error {
+func CreateConfFile(filename string, password string, plaintextNames bool, logN int, creator string, aessiv bool) error {
var cf ConfFile
cf.filename = filename
cf.Creator = creator
@@ -71,9 +71,7 @@ func CreateConfFile(filename string, password string, plaintextNames bool, logN
cf.FeatureFlags = append(cf.FeatureFlags, knownFlags[FlagDirIV])
cf.FeatureFlags = append(cf.FeatureFlags, knownFlags[FlagEMENames])
cf.FeatureFlags = append(cf.FeatureFlags, knownFlags[FlagLongNames])
- if raw64 {
- cf.FeatureFlags = append(cf.FeatureFlags, knownFlags[FlagRaw64])
- }
+ cf.FeatureFlags = append(cf.FeatureFlags, knownFlags[FlagRaw64])
}
if aessiv {
cf.FeatureFlags = append(cf.FeatureFlags, knownFlags[FlagAESSIV])