diff options
author | Jakob Unterwurzacher | 2018-09-08 12:40:29 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2018-09-08 12:40:29 +0200 |
commit | 2bdf7d5172d3540606f098030e8ede7a3ad1dfdd (patch) | |
tree | a32afb70805dbc0c4915d0b800016ea3f31214b0 /gocryptfs-xray/xray_main.go | |
parent | 09d28c293e2f4142cda8dbfee0741aee7213748d (diff) |
configfile: add LoadAndDecrypt wrapper
Callers that do not want to decrypt the masterkey should
call plain Load().
https://github.com/rfjakob/gocryptfs/issues/258
Diffstat (limited to 'gocryptfs-xray/xray_main.go')
-rw-r--r-- | gocryptfs-xray/xray_main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gocryptfs-xray/xray_main.go b/gocryptfs-xray/xray_main.go index 551b51b..569776d 100644 --- a/gocryptfs-xray/xray_main.go +++ b/gocryptfs-xray/xray_main.go @@ -61,7 +61,7 @@ func main() { func dumpMasterKey(fn string) { tlog.Info.Enabled = false pw := readpassword.Once("", "") - masterkey, _, err := configfile.Load(fn, pw) + masterkey, _, err := configfile.LoadAndDecrypt(fn, pw) if err != nil { fmt.Fprintln(os.Stderr, err) exitcodes.Exit(err) |