aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/readpassword/trezor.go2
-rw-r--r--internal/readpassword/trezor_disabled.go19
2 files changed, 21 insertions, 0 deletions
diff --git a/internal/readpassword/trezor.go b/internal/readpassword/trezor.go
index 9020b33..43e2805 100644
--- a/internal/readpassword/trezor.go
+++ b/internal/readpassword/trezor.go
@@ -1,3 +1,5 @@
+// +build enable_trezor
+
package readpassword
import (
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
+}