summaryrefslogtreecommitdiff
path: root/cli-authpubkey.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2007-08-16 13:34:37 +0000
committerMatt Johnston <matt@ucc.asn.au>2007-08-16 13:34:37 +0000
commitc7c9fe5ae7ff0d8d598af55f64faac825679d690 (patch)
tree07333ff62ba340aced17ff7bac19f661ae7cd590 /cli-authpubkey.c
parent93a722f7c1864f3c27172cac03f04ddeeef0f7af (diff)
parentf9574e178f452af6daa45f5f94e13aecaa288a81 (diff)
downloaddropbear-c7c9fe5ae7ff0d8d598af55f64faac825679d690.tar.gz
propagate from branch 'au.asn.ucc.matt.dropbear' (head 8a7db1e2fdc5636abb338adb636babc32f465739)
to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head d82c25da2f7e4fb6da510d806c64344e80bb270d)
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 c16ef90..3b89eae 100644
--- a/cli-authpubkey.c
+++ b/cli-authpubkey.c
@@ -173,6 +173,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,