comparison cli-authpubkey.c @ 560:52d7301e46bd agent-client

Agent forwarding works
author Matt Johnston <matt@ucc.asn.au>
date Thu, 30 Jul 2009 15:14:33 +0000
parents de3653483ac0
children 405418f7dc5e
comparison
equal deleted inserted replaced
559:7f66b8e40f2d 560:52d7301e46bd
185 /* Returns 1 if a key was tried */ 185 /* Returns 1 if a key was tried */
186 int cli_auth_pubkey() { 186 int cli_auth_pubkey() {
187 187
188 TRACE(("enter cli_auth_pubkey")) 188 TRACE(("enter cli_auth_pubkey"))
189 189
190 if (cli_opts.agent_fwd && 190 if (!cli_opts.agent_keys_loaded) {
191 !cli_opts.agent_keys_loaded) {
192 /* get the list of available keys from the agent */ 191 /* get the list of available keys from the agent */
193 load_agent_keys(cli_opts.privkeys); 192 cli_load_agent_keys(cli_opts.privkeys);
194 cli_opts.agent_keys_loaded = 1; 193 cli_opts.agent_keys_loaded = 1;
195 } 194 }
196 195
197 if (cli_opts.privkeys->first) { 196 if (cli_opts.privkeys->first) {
198 sign_key * key = (sign_key*)cli_opts.privkeys->first->item; 197 sign_key * key = (sign_key*)cli_opts.privkeys->first->item;