Compare commits
2 Commits
ctap-hid-f
...
retry_pin
Author | SHA1 | Date | |
---|---|---|---|
4ee5965bfa
|
|||
b939e9efcd
|
@@ -502,7 +502,11 @@ pub fn run_cli() -> Fido2LuksResult<()> {
|
|||||||
match e {
|
match e {
|
||||||
Fido2LuksError::WrongSecret if retries > 0 => {}
|
Fido2LuksError::WrongSecret if retries > 0 => {}
|
||||||
Fido2LuksError::AuthenticatorError { ref cause }
|
Fido2LuksError::AuthenticatorError { ref cause }
|
||||||
if cause.kind() == FidoErrorKind::Timeout && retries > 0 => {}
|
if match cause.kind() {
|
||||||
|
FidoErrorKind::Timeout => true,
|
||||||
|
FidoErrorKind::CborError(e) if e.code() == 0x33 => true,
|
||||||
|
_ => false,
|
||||||
|
} && retries > 0 => {}
|
||||||
|
|
||||||
e => return Err(e),
|
e => return Err(e),
|
||||||
};
|
};
|
||||||
|
@@ -245,7 +245,7 @@ pub enum Command {
|
|||||||
#[structopt(long = "dry-run")]
|
#[structopt(long = "dry-run")]
|
||||||
dry_run: bool,
|
dry_run: bool,
|
||||||
/// Pass SSD trim instructions to the underlying block device
|
/// Pass SSD trim instructions to the underlying block device
|
||||||
#[structopt(long = "allow-discards")]
|
#[structopt(long = "allow-discards", env = "FIDO2LUKS_ALLOW_DISCARDS")]
|
||||||
allow_discards: bool,
|
allow_discards: bool,
|
||||||
},
|
},
|
||||||
/// Generate a new FIDO credential
|
/// Generate a new FIDO credential
|
||||||
|
Reference in New Issue
Block a user