Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Jan 27, 2025
1 parent 7c8d528 commit c7cca46
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions russh/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,8 @@ tempfile = "3.14.0"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
russh-sftp = "2.0.5"
tokio.workspace = true

[[example]]
name = "sftp_server"
path = "examples/sftp_server.rs"
required-features = ["async-trait"]
12 changes: 7 additions & 5 deletions russh/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,17 @@ impl<R: AsyncRead + AsyncWrite + Unpin + Send + 'static> Signer
{
type Error = AgentAuthError;

async fn auth_publickey_sign(
fn auth_publickey_sign(
&mut self,
key: &ssh_key::PublicKey,
hash_alg: Option<HashAlg>,
to_sign: CryptoVec,
) -> Result<CryptoVec, Self::Error> {
self.sign_request(key, hash_alg, to_sign)
.await
.map_err(Into::into)
) -> impl Future<Output = Result<CryptoVec, Self::Error>> {
async move {
self.sign_request(key, hash_alg, to_sign)
.await
.map_err(Into::into)
}
}
}

Expand Down

0 comments on commit c7cca46

Please sign in to comment.