comparison cli-authpubkey.c @ 225:ca7e76d981d9 agent-client

- progress towards client agent forwarding (incomplete and does not compile)
author Matt Johnston <matt@ucc.asn.au>
date Mon, 18 Jul 2005 14:32:52 +0000
parents aad4b3f58556
children c1e9c81d1d27
comparison
equal deleted inserted replaced
224:1dbd2473482f 225:ca7e76d981d9
170 170
171 int cli_auth_pubkey() { 171 int cli_auth_pubkey() {
172 172
173 TRACE(("enter cli_auth_pubkey")) 173 TRACE(("enter cli_auth_pubkey"))
174 174
175 if (cli_opts.pubkeys == NULL &&
176 cli_opts.agent_fwd &&
177 !cli_opts.agent_keys_loaded) {
178 /* get the list of available keys from the agent */
179 load_agent_keys(&cli_opts.pubkeys);
180 }
181
175 if (cli_opts.privkeys != NULL) { 182 if (cli_opts.privkeys != NULL) {
176 /* Send a trial request */ 183 /* Send a trial request */
177 send_msg_userauth_pubkey(cli_opts.privkeys->key, 184 send_msg_userauth_pubkey(cli_opts.privkeys->key,
178 cli_opts.privkeys->type, 0); 185 cli_opts.privkeys->type, 0);
179 cli_ses.lastprivkey = cli_opts.privkeys; 186 cli_ses.lastprivkey = cli_opts.privkeys;