|
|
|
@ -28,8 +28,9 @@ impl<D: ctaphid::HidDevice> Ctap2_2Authenticator for HidAuthenticator<D> {
|
|
|
|
|
todo!()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn reset() -> Result<(), reset::Error> {
|
|
|
|
|
todo!()
|
|
|
|
|
fn reset(&mut self) -> Result<(), reset::Error> {
|
|
|
|
|
let _: () = self.send(Command::AuthenticatorReset, ()).unwrap();
|
|
|
|
|
Ok(())
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn selection() -> Result<(), ctap2_proto::authenticator::selection::Error> {
|
|
|
|
@ -67,6 +68,16 @@ mod tests {
|
|
|
|
|
None
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// #[test]
|
|
|
|
|
fn reset() {
|
|
|
|
|
init();
|
|
|
|
|
|
|
|
|
|
let mut guard = AUTHENTICATOR.lock().unwrap();
|
|
|
|
|
let authenticator = guard.as_mut().unwrap();
|
|
|
|
|
|
|
|
|
|
authenticator.reset().unwrap();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
|
fn test_get_info() {
|
|
|
|
|
init();
|
|
|
|
|