From bd054e70ef1c0f9709b5bc216ba148cf088d7edb Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 15 Aug 2018 23:31:37 +0200 Subject: trezor: show support in version string Show enable_trezor in the version string if we were compiled with `-tags enable_trezor`. And hide the `-trezor` flag from the help output if we were not. --- internal/readpassword/trezor.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/readpassword/trezor.go') diff --git a/internal/readpassword/trezor.go b/internal/readpassword/trezor.go index 43e2805..a4d32cf 100644 --- a/internal/readpassword/trezor.go +++ b/internal/readpassword/trezor.go @@ -21,6 +21,8 @@ const ( trezorNonce = "" // the "nonce" is optional and has no use in here trezorKeyName = "gocryptfs" trezorKeyDerivationPath = `m/10019'/0'` + // TrezorSupport is true when gocryptfs has been compile with -tags enable_trezor + TrezorSupport = true ) func trezorGetPin(title, description, ok, cancel string) ([]byte, error) { -- cgit v1.2.3