diff --git a/apps/desktop/desktop_native/ssh_agent/src/memory/mod.rs b/apps/desktop/desktop_native/ssh_agent/src/memory/mod.rs index 4794513765f..8beed89d07a 100644 --- a/apps/desktop/desktop_native/ssh_agent/src/memory/mod.rs +++ b/apps/desktop/desktop_native/ssh_agent/src/memory/mod.rs @@ -23,11 +23,11 @@ impl UnlockedSshItem { } } -struct LockedKeyStore { +pub(crate) struct LockedKeyStore { keys: Vec, } -struct UnlockedKeyStore { +pub(crate) struct UnlockedKeyStore { keys: Vec, } @@ -113,6 +113,7 @@ impl KeyStore { None } + #[allow(unused)] pub fn is_locked(&self) -> bool { matches!(self, KeyStore::Locked(_)) } diff --git a/apps/desktop/desktop_native/ssh_agent/src/protocol/protocol.rs b/apps/desktop/desktop_native/ssh_agent/src/protocol/protocol.rs index 00019271669..c91185540c3 100644 --- a/apps/desktop/desktop_native/ssh_agent/src/protocol/protocol.rs +++ b/apps/desktop/desktop_native/ssh_agent/src/protocol/protocol.rs @@ -61,7 +61,6 @@ async fn handle_connection( } }; - span.in_scope(|| info!("Request {:x?}", request)); let Ok(request) = Request::try_from(request.as_slice()) else { span.in_scope(|| error!("Failed to parse request")); stream.write_reply(&AgentFailure::new().into()).await?; @@ -112,9 +111,7 @@ async fn handle_connection( } }?; - let encoded: Vec = (&response).into(); span.in_scope(|| info!("Sending response")); - span.in_scope(|| info!("Response {:x?}", encoded)); stream.write_reply(&response).await?; } Ok(()) diff --git a/apps/desktop/desktop_native/ssh_agent/src/protocol/requests.rs b/apps/desktop/desktop_native/ssh_agent/src/protocol/requests.rs index 930c0a1d99a..f771b548b70 100644 --- a/apps/desktop/desktop_native/ssh_agent/src/protocol/requests.rs +++ b/apps/desktop/desktop_native/ssh_agent/src/protocol/requests.rs @@ -93,6 +93,7 @@ impl TryFrom<&[u8]> for Request { pub(crate) struct SshSignRequest { public_key: PublicKey, payload_to_sign: Vec, + #[allow(unused)] parsed_sign_request: ParsedSignRequest, flags: u32, } @@ -120,6 +121,7 @@ impl SshSignRequest { &self.payload_to_sign } + #[allow(unused)] pub fn parsed_payload(&self) -> &ParsedSignRequest { &self.parsed_sign_request } @@ -155,7 +157,10 @@ impl TryFrom<&[u8]> for SshSignRequest { #[derive(Debug)] pub(crate) enum ParsedSignRequest { - SshSigRequest { namespace: String }, + #[allow(unused)] + SshSigRequest { + namespace: String, + }, SignRequest {}, } @@ -236,9 +241,13 @@ impl From for Extension { /// bool is_forwarding #[derive(Debug)] struct SessionBindRequest { + #[allow(unused)] host_key: PublicKey, + #[allow(unused)] session_id: SessionId, + #[allow(unused)] signature: Signature, + #[allow(unused)] is_forwarding: bool, }