From bfbe624301cb1dc0eef9dc00c235edb339e98082 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Mon, 18 Jul 2005 14:32:52 +0000 Subject: - progress towards client agent forwarding (incomplete and does not compile) --- cli-authpubkey.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cli-authpubkey.c') diff --git a/cli-authpubkey.c b/cli-authpubkey.c index 9d36bc3..2cc92f7 100644 --- a/cli-authpubkey.c +++ b/cli-authpubkey.c @@ -172,6 +172,13 @@ int cli_auth_pubkey() { TRACE(("enter cli_auth_pubkey")) + if (cli_opts.pubkeys == NULL && + cli_opts.agent_fwd && + !cli_opts.agent_keys_loaded) { + /* get the list of available keys from the agent */ + load_agent_keys(&cli_opts.pubkeys); + } + if (cli_opts.privkeys != NULL) { /* Send a trial request */ send_msg_userauth_pubkey(cli_opts.privkeys->key, -- cgit v1.2.1