From c6f6e8ec4d71475a24ebbb0e64f19ad94249efd9 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 17 Jun 2018 15:25:09 +0200 Subject: trezor: add skeleton for Trezor support readpassword.Trezor() is not implemented yet and returns a hardcoded dummy key. --- masterkey.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'masterkey.go') 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) -- cgit v1.2.3