comparison cli-agentfwd.c @ 985:9bf46570868f

clarify bad/unknown
author Matt Johnston <matt@ucc.asn.au>
date Sun, 04 Jan 2015 22:32:38 +0800
parents d46e7f613157
children 16584026a1f0
comparison
equal deleted inserted replaced
984:d46e7f613157 985:9bf46570868f
208 key_buf = buf_getstringbuf(inbuf); 208 key_buf = buf_getstringbuf(inbuf);
209 pubkey = new_sign_key(); 209 pubkey = new_sign_key();
210 ret = buf_get_pub_key(key_buf, pubkey, &key_type); 210 ret = buf_get_pub_key(key_buf, pubkey, &key_type);
211 buf_free(key_buf); 211 buf_free(key_buf);
212 if (ret != DROPBEAR_SUCCESS) { 212 if (ret != DROPBEAR_SUCCESS) {
213 TRACE(("Skipping bad pubkey from agent")); 213 TRACE(("Skipping bad/unknown type pubkey from agent"));
214 sign_key_free(pubkey); 214 sign_key_free(pubkey);
215 } else { 215 } else {
216 pubkey->type = key_type; 216 pubkey->type = key_type;
217 pubkey->source = SIGNKEY_SOURCE_AGENT; 217 pubkey->source = SIGNKEY_SOURCE_AGENT;
218 218