aboutsummaryrefslogtreecommitdiff
path: root/internal/readpassword/trezor_disabled.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/readpassword/trezor_disabled.go')
-rw-r--r--internal/readpassword/trezor_disabled.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/internal/readpassword/trezor_disabled.go b/internal/readpassword/trezor_disabled.go
new file mode 100644
index 0000000..3ba969c
--- /dev/null
+++ b/internal/readpassword/trezor_disabled.go
@@ -0,0 +1,19 @@
+// +build !enable_trezor
+
+package readpassword
+
+import (
+ "os"
+
+ "github.com/rfjakob/gocryptfs/internal/tlog"
+)
+
+const (
+ TrezorPayloadLen = 32
+)
+
+func Trezor(payload []byte) []byte {
+ tlog.Fatal.Printf("\"-trezor\" is not implemented yet.")
+ os.Exit(1)
+ return nil
+}