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