Mercurial > dropbear
comparison cli-authpubkey.c @ 550:61c3513825b0 agent-client
Talking to the agent works now. Can't interpret the pubkeys.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 01 Jul 2009 06:27:27 +0000 |
parents | cf376c696dfc |
children | c3f2ec71e3d4 |
comparison
equal
deleted
inserted
replaced
547:cf376c696dfc | 550:61c3513825b0 |
---|---|
172 | 172 |
173 int cli_auth_pubkey() { | 173 int cli_auth_pubkey() { |
174 | 174 |
175 TRACE(("enter cli_auth_pubkey")) | 175 TRACE(("enter cli_auth_pubkey")) |
176 | 176 |
177 if (cli_opts.privkeys == NULL && | 177 if (cli_opts.agent_fwd && |
178 cli_opts.agent_fwd && | |
179 !cli_opts.agent_keys_loaded) { | 178 !cli_opts.agent_keys_loaded) { |
180 /* get the list of available keys from the agent */ | 179 /* get the list of available keys from the agent */ |
181 load_agent_keys(&cli_opts.privkeys); | 180 load_agent_keys(&cli_opts.privkeys); |
181 cli_opts.agent_keys_loaded = 1; | |
182 } | 182 } |
183 | 183 |
184 if (cli_opts.privkeys != NULL) { | 184 if (cli_opts.privkeys != NULL) { |
185 /* Send a trial request */ | 185 /* Send a trial request */ |
186 send_msg_userauth_pubkey(cli_opts.privkeys->key, | 186 send_msg_userauth_pubkey(cli_opts.privkeys->key, |