From 1364b44ae356da31e24e5605fe73a307e9d6fb03 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Fri, 27 Dec 2019 22:27:57 +0100 Subject: remove Trezor support --- cli_args.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'cli_args.go') diff --git a/cli_args.go b/cli_args.go index cae7723..8d0b7b5 100644 --- a/cli_args.go +++ b/cli_args.go @@ -18,7 +18,6 @@ import ( "github.com/rfjakob/gocryptfs/internal/configfile" "github.com/rfjakob/gocryptfs/internal/exitcodes" "github.com/rfjakob/gocryptfs/internal/prefer_openssl" - "github.com/rfjakob/gocryptfs/internal/readpassword" "github.com/rfjakob/gocryptfs/internal/stupidgcm" "github.com/rfjakob/gocryptfs/internal/tlog" ) @@ -29,7 +28,7 @@ type argContainer struct { plaintextnames, quiet, nosyslog, wpanic, longnames, allow_other, reverse, aessiv, nonempty, raw64, noprealloc, speed, hkdf, serialize_reads, forcedecode, hh, info, - sharedstorage, devrandom, fsck, trezor bool + sharedstorage, devrandom, fsck bool // Mount options with opposites dev, nodev, suid, nosuid, exec, noexec, rw, ro bool masterkey, mountpoint, cipherdir, cpuprofile, @@ -170,9 +169,6 @@ func parseCliOpts() (args argContainer) { flagSet.BoolVar(&args.sharedstorage, "sharedstorage", false, "Make concurrent access to a shared CIPHERDIR safer") flagSet.BoolVar(&args.devrandom, "devrandom", false, "Use /dev/random for generating master key") flagSet.BoolVar(&args.fsck, "fsck", false, "Run a filesystem check on CIPHERDIR") - if readpassword.TrezorSupport { - flagSet.BoolVar(&args.trezor, "trezor", false, "Protect the masterkey using a SatoshiLabs Trezor instead of a password") - } // Mount options with opposites flagSet.BoolVar(&args.dev, "dev", false, "Allow device files") @@ -282,10 +278,6 @@ func parseCliOpts() (args argContainer) { tlog.Fatal.Printf("The options -extpass and -masterkey cannot be used at the same time") os.Exit(exitcodes.Usage) } - if !args.extpass.Empty() && args.trezor { - tlog.Fatal.Printf("The options -extpass and -trezor cannot be used at the same time") - os.Exit(exitcodes.Usage) - } if args.idle < 0 { tlog.Fatal.Printf("Idle timeout cannot be less than 0") os.Exit(exitcodes.Usage) -- cgit v1.2.3