comparison cli-agentfwd.c @ 653:5e8d84f3ee72

- Remove unused variable/code
author Matt Johnston <matt@ucc.asn.au>
date Sun, 04 Dec 2011 05:27:57 +0800
parents 1aee049681bd
children 0fd32a552ea5
comparison
equal deleted inserted replaced
652:17962b2a6b8f 653:5e8d84f3ee72
258 258
259 void agent_buf_sign(buffer *sigblob, sign_key *key, 259 void agent_buf_sign(buffer *sigblob, sign_key *key,
260 const unsigned char *data, unsigned int len) { 260 const unsigned char *data, unsigned int len) {
261 buffer *request_data = NULL; 261 buffer *request_data = NULL;
262 buffer *response = NULL; 262 buffer *response = NULL;
263 unsigned int keylen, siglen; 263 unsigned int siglen;
264 int packet_type; 264 int packet_type;
265 265
266 /* Request format 266 /* Request format
267 byte SSH2_AGENTC_SIGN_REQUEST 267 byte SSH2_AGENTC_SIGN_REQUEST
268 string key_blob 268 string key_blob
269 string data 269 string data
270 uint32 flags 270 uint32 flags
271 */ 271 */
272 request_data = buf_new(MAX_PUBKEY_SIZE + len + 12); 272 request_data = buf_new(MAX_PUBKEY_SIZE + len + 12);
273 buf_put_pub_key(request_data, key, key->type); 273 buf_put_pub_key(request_data, key, key->type);
274 keylen = request_data->len - 4;
275 274
276 buf_putstring(request_data, data, len); 275 buf_putstring(request_data, data, len);
277 buf_putint(request_data, 0); 276 buf_putint(request_data, 0);
278 277
279 response = agent_request(SSH2_AGENTC_SIGN_REQUEST, request_data); 278 response = agent_request(SSH2_AGENTC_SIGN_REQUEST, request_data);