allows silent certificate checks (#410)

This commit is contained in:
kaczmarczyck
2021-11-18 17:09:40 +01:00
committed by GitHub
parent ae4e32ba4a
commit 5cf988c7fa
3 changed files with 72 additions and 27 deletions

View File

@@ -1192,7 +1192,9 @@ where
params: AuthenticatorVendorConfigureParameters,
cid: ChannelID,
) -> Result<ResponseData, Ctap2StatusCode> {
(self.check_user_presence)(cid)?;
if params.attestation_material.is_some() || params.lockdown {
(self.check_user_presence)(cid)?;
}
// Sanity checks
let current_priv_key = self.persistent_store.attestation_private_key()?;