comparison cli-authpubkey.c @ 410:b895f91c2ee6

merge of 'b1dd3b94e60a07a176dba2b035ac79968595990a' and 'bcb33fce2fad01a7626598209d43af3571bd86f0'
author Matt Johnston <matt@ucc.asn.au>
date Sun, 04 Feb 2007 10:32:59 +0000
parents 454a34b2dfd1 2448ae3e75b5
children 7f010e3b1802
comparison
equal deleted inserted replaced
399:a707e6148060 410:b895f91c2ee6
58 TRACE(("leave cli_pubkeyfail")) 58 TRACE(("leave cli_pubkeyfail"))
59 } 59 }
60 60
61 void recv_msg_userauth_pk_ok() { 61 void recv_msg_userauth_pk_ok() {
62 62
63 struct SignKeyList *keyitem; 63 struct SignKeyList *keyitem = NULL;
64 buffer* keybuf; 64 buffer* keybuf = NULL;
65 char* algotype = NULL; 65 char* algotype = NULL;
66 unsigned int algolen; 66 unsigned int algolen;
67 int keytype; 67 int keytype;
68 unsigned int remotelen; 68 unsigned int remotelen;
69 69
120 * password */ 120 * password */
121 send_msg_userauth_pubkey(keyitem->key, keytype, 1); 121 send_msg_userauth_pubkey(keyitem->key, keytype, 1);
122 } else { 122 } else {
123 TRACE(("That was whacky. We got told that a key was valid, but it didn't match our list. Sounds like dodgy code on Dropbear's part")) 123 TRACE(("That was whacky. We got told that a key was valid, but it didn't match our list. Sounds like dodgy code on Dropbear's part"))
124 } 124 }
125
126 buf_free(keybuf);
125 127
126 TRACE(("leave recv_msg_userauth_pk_ok")) 128 TRACE(("leave recv_msg_userauth_pk_ok"))
127 } 129 }
128 130
129 /* TODO: make it take an agent reference to use as well */ 131 /* TODO: make it take an agent reference to use as well */