From a02871a4fed733af01c5c2a6fc13acc8c6f5813e Mon Sep 17 00:00:00 2001 From: Eugene Date: Sun, 3 Nov 2024 23:05:08 +0100 Subject: [PATCH] rename authenticate_agent to authenticate_publickey_with --- russh/src/client/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/russh/src/client/mod.rs b/russh/src/client/mod.rs index bdef67d7..8988ae72 100644 --- a/russh/src/client/mod.rs +++ b/russh/src/client/mod.rs @@ -383,9 +383,8 @@ impl Handle { /// Authenticate using a custom method that implements the /// [`Signer`][auth::Signer] trait. Currently, this crate only provides an - /// implementation for an [SSH - /// agent][russh_keys::agent::client::AgentClient]. - pub async fn authenticate_agent, S: auth::Signer>( + /// implementation for an [SSH agent][russh_keys::agent::client::AgentClient]. + pub async fn authenticate_publickey_with, S: auth::Signer>( &mut self, user: U, key: ssh_key::PublicKey,