aboutsummaryrefslogtreecommitdiff
path: root/src/agent.c
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2015-09-25 01:10:03 +0200
committerFabiano FidĂȘncio <fidencio@redhat.com>2016-01-19 11:31:07 +0100
commit954341dd1f664dbcd6e8a3818516bbfd9b797c95 (patch)
tree82047c4b2ac680c0d9192e19d2211d0d718def00 /src/agent.c
parent56d0e91e10f28f56a1a3237efa48d7955f4bd386 (diff)
downloadlibssh-954341dd1f664dbcd6e8a3818516bbfd9b797c95.tar.gz
libssh-954341dd1f664dbcd6e8a3818516bbfd9b797c95.tar.xz
libssh-954341dd1f664dbcd6e8a3818516bbfd9b797c95.zip
buffer: rename ssh_buffer_get_rest() to ssh_buffer_get()
Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/agent.c')
-rw-r--r--src/agent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/agent.c b/src/agent.c
index b63cdfb7..edd4cd34 100644
--- a/src/agent.c
+++ b/src/agent.c
@@ -279,7 +279,7 @@ static int agent_talk(struct ssh_session_struct *session,
/* send length and then the request packet */
if (atomicio(session->agent, payload, 4, 0) == 4) {
- if (atomicio(session->agent, ssh_buffer_get_rest(request), len, 0)
+ if (atomicio(session->agent, ssh_buffer_get(request), len, 0)
!= len) {
SSH_LOG(SSH_LOG_WARN, "atomicio sending request failed: %s",
strerror(errno));
@@ -546,7 +546,7 @@ ssh_string ssh_agent_sign_data(ssh_session session,
ssh_buffer_free(request);
return NULL;
}
- if (ssh_buffer_add_data(request, ssh_buffer_get_rest(data), dlen) < 0) {
+ if (ssh_buffer_add_data(request, ssh_buffer_get(data), dlen) < 0) {
ssh_buffer_free(request);
return NULL;
}