diff options
author | Jakob Unterwurzacher | 2015-11-03 22:27:11 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2015-11-03 22:27:11 +0100 |
commit | 765411cc70577a6332f2eb3f446364878555a8bd (patch) | |
tree | ebcc917de1acdece33c585df15fbf73749cc8c5d /main.go | |
parent | 050005fd7bd2bcdbb99f065e48f15283c5e1f7e2 (diff) |
tests: check that the filename encryption is working as expected
Also check that the "gocryptfs.conf" path filtering is working
as expected
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -146,11 +146,13 @@ func main() { os.Exit(ERREXIT_CIPHERDIR) } + var plaintextNames bool var cf *cryptfs.ConfFile var currentPassword string key := make([]byte, cryptfs.KEY_LEN) if args.zerokey { fmt.Printf("Zerokey mode active: using all-zero dummy master key.\n") + plaintextNames = args.plaintextnames } else if len(args.masterkey) > 0 { key = parseMasterKey(args.masterkey) fmt.Printf("Using explicit master key.\n") @@ -196,7 +198,6 @@ func main() { os.Exit(0) } - var plaintextNames bool if cf != nil { plaintextNames = cf.PlaintextNames() } |