comparison cli-authpubkey.c @ 547:cf376c696dfc agent-client

Make it compile, update for changes in channel structure.
author Matt Johnston <matt@ucc.asn.au>
date Wed, 01 Jul 2009 04:53:17 +0000
parents 568638be7203
children 61c3513825b0
comparison
equal deleted inserted replaced
546:568638be7203 547:cf376c696dfc
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.pubkeys == NULL && 177 if (cli_opts.privkeys == NULL &&
178 cli_opts.agent_fwd && 178 cli_opts.agent_fwd &&
179 !cli_opts.agent_keys_loaded) { 179 !cli_opts.agent_keys_loaded) {
180 /* get the list of available keys from the agent */ 180 /* get the list of available keys from the agent */
181 load_agent_keys(&cli_opts.pubkeys); 181 load_agent_keys(&cli_opts.privkeys);
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,