Mercurial > dropbear
comparison cli-authpubkey.c @ 458:c1e9c81d1d27 agent-client
propagate from branch 'au.asn.ucc.matt.dropbear' (head 8a7db1e2fdc5636abb338adb636babc32f465739)
to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head d82c25da2f7e4fb6da510d806c64344e80bb270d)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 16 Aug 2007 13:34:37 +0000 |
parents | 7f010e3b1802 ca7e76d981d9 |
children | 568638be7203 |
comparison
equal
deleted
inserted
replaced
457:e430a26064ee | 458:c1e9c81d1d27 |
---|---|
171 | 171 |
172 int cli_auth_pubkey() { | 172 int cli_auth_pubkey() { |
173 | 173 |
174 TRACE(("enter cli_auth_pubkey")) | 174 TRACE(("enter cli_auth_pubkey")) |
175 | 175 |
176 if (cli_opts.pubkeys == NULL && | |
177 cli_opts.agent_fwd && | |
178 !cli_opts.agent_keys_loaded) { | |
179 /* get the list of available keys from the agent */ | |
180 load_agent_keys(&cli_opts.pubkeys); | |
181 } | |
182 | |
176 if (cli_opts.privkeys != NULL) { | 183 if (cli_opts.privkeys != NULL) { |
177 /* Send a trial request */ | 184 /* Send a trial request */ |
178 send_msg_userauth_pubkey(cli_opts.privkeys->key, | 185 send_msg_userauth_pubkey(cli_opts.privkeys->key, |
179 cli_opts.privkeys->type, 0); | 186 cli_opts.privkeys->type, 0); |
180 cli_ses.lastprivkey = cli_opts.privkeys; | 187 cli_ses.lastprivkey = cli_opts.privkeys; |