Mercurial > dropbear
diff cli-agentfwd.c @ 1511:5916af64acd4 fuzz
merge from main
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 17 Feb 2018 19:29:51 +0800 |
parents | 06d52bcb8094 |
children | 79eef94ccea9 |
line wrap: on
line diff
--- a/cli-agentfwd.c Tue Jan 23 23:27:40 2018 +0800 +++ b/cli-agentfwd.c Sat Feb 17 19:29:51 2018 +0800 @@ -108,7 +108,7 @@ data Any data, depending on packet type. Encoding as in the ssh packet protocol. */ -static buffer * agent_request(unsigned char type, buffer *data) { +static buffer * agent_request(unsigned char type, const buffer *data) { buffer * payload = NULL; buffer * inbuf = NULL; @@ -230,7 +230,7 @@ } } -void cli_setup_agent(struct Channel *channel) { +void cli_setup_agent(const struct Channel *channel) { if (!getenv("SSH_AUTH_SOCK")) { return; } @@ -254,7 +254,7 @@ } void agent_buf_sign(buffer *sigblob, sign_key *key, - buffer *data_buf) { + const buffer *data_buf) { buffer *request_data = NULL; buffer *response = NULL; unsigned int siglen;