diff options
author | invis-z | 2023-11-21 18:12:01 +0000 |
---|---|---|
committer | rfjakob | 2024-04-19 22:36:55 +0200 |
commit | 4b6b9553c4a2e14fd809754f6bf187957ff3cdfd (patch) | |
tree | c020acb7b2ebfb6121725082ec03944c8a6aa1cd /main.go | |
parent | f5007b28c366d1a9671146710975679a154f30f8 (diff) |
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
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -43,7 +43,7 @@ func loadConfig(args *argContainer) (masterkey []byte, cf *configfile.ConfFile, tlog.Fatal.Printf("Masterkey encrypted using FIDO2 token; need to use the --fido2 option.") return nil, nil, exitcodes.NewErr("", exitcodes.Usage) } - pw = fido2.Secret(args.fido2, cf.FIDO2.CredentialID, cf.FIDO2.HMACSalt) + pw = fido2.Secret(args.fido2, cf.FIDO2.AssertOptions, cf.FIDO2.CredentialID, cf.FIDO2.HMACSalt) } else { pw, err = readpassword.Once([]string(args.extpass), []string(args.passfile), "") if err != nil { |