From d8a36c1a7460b14132cba9df3e8f9dab80047aaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Fri, 24 Mar 2023 16:29:14 +0100 Subject: [PATCH] Remove todo --- src/lib.rs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 5dde67b..d5bb245 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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(()) }