aboutsummaryrefslogtreecommitdiff
path: root/tests/plaintextnames/plaintextnames_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-02-18 14:26:54 +0100
committerJakob Unterwurzacher2018-02-18 14:26:54 +0100
commit3b8f5cbb17c964224456bb36b096feafb0e24f44 (patch)
tree1caae8dbf736510b971790b94c1975b325dfe377 /tests/plaintextnames/plaintextnames_test.go
parent14c063428dcded6a1060395bb45bf7bd5d185738 (diff)
readpassword: convert from string to []byte
This will allows us to overwrite the password with zeros once we are done with it. https://github.com/rfjakob/gocryptfs/issues/211
Diffstat (limited to 'tests/plaintextnames/plaintextnames_test.go')
-rw-r--r--tests/plaintextnames/plaintextnames_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/plaintextnames/plaintextnames_test.go b/tests/plaintextnames/plaintextnames_test.go
index cda5149..6b513aa 100644
--- a/tests/plaintextnames/plaintextnames_test.go
+++ b/tests/plaintextnames/plaintextnames_test.go
@@ -15,6 +15,8 @@ import (
var cDir string
var pDir string
+var testPw = []byte("test")
+
// Create and mount "-plaintextnames" fs
func TestMain(m *testing.M) {
cDir = test_helpers.InitFS(nil, "-plaintextnames")
@@ -27,7 +29,7 @@ func TestMain(m *testing.M) {
// Only the PlaintextNames feature flag should be set
func TestFlags(t *testing.T) {
- _, cf, err := configfile.LoadConfFile(cDir+"/gocryptfs.conf", "test")
+ _, cf, err := configfile.LoadConfFile(cDir+"/gocryptfs.conf", testPw)
if err != nil {
t.Fatal(err)
}