Merge pull request #217 from kaczmarczyck/make-up-option

fail on UP=true in make
This commit is contained in:
kaczmarczyck
2020-11-23 13:03:43 +01:00
committed by GitHub

View File

@@ -361,10 +361,8 @@ impl TryFrom<cbor::Value> for MakeCredentialOptions {
Some(options_entry) => extract_bool(options_entry)?, Some(options_entry) => extract_bool(options_entry)?,
None => false, None => false,
}; };
if let Some(options_entry) = up { if up.is_some() {
if !extract_bool(options_entry)? { return Err(Ctap2StatusCode::CTAP2_ERR_INVALID_OPTION);
return Err(Ctap2StatusCode::CTAP2_ERR_INVALID_OPTION);
}
} }
let uv = match uv { let uv = match uv {
Some(options_entry) => extract_bool(options_entry)?, Some(options_entry) => extract_bool(options_entry)?,