From 4b6b9553c4a2e14fd809754f6bf187957ff3cdfd Mon Sep 17 00:00:00 2001 From: invis-z Date: Tue, 21 Nov 2023 18:12:01 +0000 Subject: Add option to set FIDO2 verificatoin option Add an option to specify user verification options for `fido2-assert -t` Options will be saved to config file Provide same functionality to #705 with simpler implementation Resolve #702 --- gocryptfs-xray/xray_main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gocryptfs-xray') diff --git a/gocryptfs-xray/xray_main.go b/gocryptfs-xray/xray_main.go index 2bc98f0..1c491f1 100644 --- a/gocryptfs-xray/xray_main.go +++ b/gocryptfs-xray/xray_main.go @@ -146,7 +146,7 @@ func dumpMasterKey(fn string, fido2Path string) { tlog.Fatal.Printf("Masterkey encrypted using FIDO2 token; need to use the --fido2 option.") os.Exit(exitcodes.Usage) } - pw = fido2.Secret(fido2Path, cf.FIDO2.CredentialID, cf.FIDO2.HMACSalt) + pw = fido2.Secret(fido2Path, cf.FIDO2.AssertOptions, cf.FIDO2.CredentialID, cf.FIDO2.HMACSalt) } else { pw, err = readpassword.Once(nil, nil, "") if err != nil { -- cgit v1.2.3