aboutsummaryrefslogtreecommitdiff
path: root/main.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 /main.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 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 797701a..ed5784f 100644
--- a/main.go
+++ b/main.go
@@ -44,7 +44,7 @@ func loadConfig(args *argContainer) (masterkey []byte, confFile *configfile.Conf
// password).
if args.masterkey != "" {
masterkey = parseMasterKey(args.masterkey)
- _, confFile, err = configfile.LoadConfFile(args.config, "")
+ _, confFile, err = configfile.LoadConfFile(args.config, nil)
} else {
pw := readpassword.Once(args.extpass)
tlog.Info.Println("Decrypting master key")