summaryrefslogtreecommitdiffhomepage
path: root/cli-authpubkey.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2005-07-18 14:32:52 +0000
committerMatt Johnston <matt@ucc.asn.au>2005-07-18 14:32:52 +0000
commite444f0cfe67c71d3f38854f27cefae9aea6c4cd9 (patch)
tree7539060f852ea180fe550525412f7345a464adba /cli-authpubkey.c
parentb8e28df43a1d37b5a50b34db357daea98c42a89c (diff)
- progress towards client agent forwarding
(incomplete and does not compile) --HG-- branch : agent-client extra : convert_revision : 01038174ec27245b51bd43a66c01ad930880f67b
Diffstat (limited to 'cli-authpubkey.c')
-rw-r--r--cli-authpubkey.c7
1 files changed, 7 insertions, 0 deletions
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,