aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-11-03 22:27:11 +0100
committerJakob Unterwurzacher2015-11-03 22:27:11 +0100
commit765411cc70577a6332f2eb3f446364878555a8bd (patch)
treeebcc917de1acdece33c585df15fbf73749cc8c5d /main.go
parent050005fd7bd2bcdbb99f065e48f15283c5e1f7e2 (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.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.go b/main.go
index 57dbe05..2adf656 100644
--- a/main.go
+++ b/main.go
@@ -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()
}