diff options
author | Jakob Unterwurzacher | 2018-06-17 15:25:09 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2018-07-01 20:56:04 +0200 |
commit | c6f6e8ec4d71475a24ebbb0e64f19ad94249efd9 (patch) | |
tree | 387469668b60e5eeddf50cf1103af43f352c0192 /masterkey.go | |
parent | 02ab358451e23087cdba9cfdec6e8e31ae4adb4e (diff) |
trezor: add skeleton for Trezor support
readpassword.Trezor() is not implemented yet and returns
a hardcoded dummy key.
Diffstat (limited to 'masterkey.go')
-rw-r--r-- | masterkey.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/masterkey.go b/masterkey.go index c67f115..1b4d9c3 100644 --- a/masterkey.go +++ b/masterkey.go @@ -103,7 +103,9 @@ func getMasterKey(args *argContainer) (masterkey []byte, confFile *configfile.Co } exitcodes.Exit(err) } - readpassword.CheckTrailingGarbage() + if !args.trezor { + readpassword.CheckTrailingGarbage() + } if !args.fsck { // We only want to print the masterkey message on a normal mount. printMasterKey(masterkey) |