summaryrefslogtreecommitdiffhomepage
path: root/cli-agentfwd.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-11-01 00:19:25 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-11-01 00:19:25 +0800
commit35f26ff8555c0accbc5b48df0fceebab3a71c54b (patch)
tree7de6c381ae3c68e5803bb62e535136b9f56247cf /cli-agentfwd.c
parent3d733a16e9ee856a45a1fbd9a1b48005d78063f9 (diff)
parent55e7f0486a15b08122fffb22e38c71be15ef2986 (diff)
merge again
Diffstat (limited to 'cli-agentfwd.c')
-rw-r--r--cli-agentfwd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli-agentfwd.c b/cli-agentfwd.c
index c661455..ba07f54 100644
--- a/cli-agentfwd.c
+++ b/cli-agentfwd.c
@@ -254,7 +254,7 @@ void cli_load_agent_keys(m_list *ret_list) {
}
void agent_buf_sign(buffer *sigblob, sign_key *key,
- const unsigned char *data, unsigned int len) {
+ buffer *data_buf) {
buffer *request_data = NULL;
buffer *response = NULL;
unsigned int siglen;
@@ -266,10 +266,10 @@ void agent_buf_sign(buffer *sigblob, sign_key *key,
string data
uint32 flags
*/
- request_data = buf_new(MAX_PUBKEY_SIZE + len + 12);
+ request_data = buf_new(MAX_PUBKEY_SIZE + data_buf->len + 12);
buf_put_pub_key(request_data, key, key->type);
- buf_putstring(request_data, data, len);
+ buf_putbufstring(request_data, data_buf);
buf_putint(request_data, 0);
response = agent_request(SSH2_AGENTC_SIGN_REQUEST, request_data);