adds permissions and adapts clientPin 2.1 subcommands

This commit is contained in:
Fabian Kaczmarczyck
2020-07-02 19:11:49 +02:00
parent 26595db810
commit 216a6a0f6e
2 changed files with 163 additions and 20 deletions

View File

@@ -413,6 +413,9 @@ where
{
return Err(Ctap2StatusCode::CTAP2_ERR_PIN_AUTH_INVALID);
}
#[cfg(feature = "with_ctap2_1")]
self.pin_protocol_v1
.has_make_credential_permission(&rp_id)?;
UP_FLAG | UV_FLAG | AT_FLAG | ed_flag
}
None => {
@@ -591,6 +594,8 @@ where
{
return Err(Ctap2StatusCode::CTAP2_ERR_PIN_AUTH_INVALID);
}
#[cfg(feature = "with_ctap2_1")]
self.pin_protocol_v1.has_get_assertion_permission(&rp_id)?;
UV_FLAG
}
None => {