mirror of
https://github.com/trussed-dev/piv-authenticator.git
synced 2026-06-20 04:16:15 -07:00
Remove todo
This commit is contained in:
+15
-1
@@ -500,7 +500,21 @@ impl<'a, T: trussed::Client + trussed::client::Ed255> LoadedAuthenticator<'a, T>
|
||||
response: None,
|
||||
exponentiation: None,
|
||||
} => self.mutual_auth_2(auth, r, c, reply.lend())?,
|
||||
_ => todo!(),
|
||||
Auth {
|
||||
witness,
|
||||
challenge,
|
||||
response,
|
||||
exponentiation,
|
||||
} => {
|
||||
warn!(
|
||||
"General authenticate with unexpected data: witness: {:?}, challenge: {:?}, response: {:?}, exponentiation: {:?}",
|
||||
witness.map(|s|s.len()),
|
||||
challenge.map(|s|s.len()),
|
||||
response.map(|s|s.len()),
|
||||
exponentiation.map(|s|s.len()),
|
||||
);
|
||||
return Err(Status::IncorrectDataParameter);
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user