discard any addional options which an fido 2.1 device might send

This commit is contained in:
shimun 2020-03-31 20:34:38 +02:00
parent 3ca719e077
commit 238c4ba791
Signed by: shimun
GPG Key ID: E81D8382DC2F971B
2 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
[package]
name = "ctap_hmac"
description = "A Rust implementation of the FIDO2 CTAP protocol, including the HMAC extension"
version = "0.2.1"
version = "0.2.2"
license = "Apache-2.0/MIT"
homepage = "https://github.com/ArdaXi/ctap/pull/2"
repository = "https://github.com/shimunn/ctap"

View File

@ -423,7 +423,9 @@ impl OptionsInfo {
"clientPin" => options.client_pin = Some(decoder.bool()?),
"up" => options.up = decoder.bool()?,
"uv" => options.uv = Some(decoder.bool()?),
_ => continue,
_ => {
decoder.bool()?;
}
}
}
Ok(options)