summaryrefslogtreecommitdiffstats
path: root/src/kex1.c
diff options
context:
space:
mode:
authorFabiano Fidêncio <fidencio@redhat.com>2015-09-25 01:25:56 +0200
committerFabiano Fidêncio <fidencio@redhat.com>2015-10-12 13:56:21 +0200
commit850936900fb95e59fbc15d3f1d9993385326977f (patch)
tree565b9c1f97ba7530eb1548405da3b904668d0400 /src/kex1.c
parent86e3680bdedee10b6f0a46360b5a330d96e2f707 (diff)
downloadlibssh-850936900fb95e59fbc15d3f1d9993385326977f.tar.gz
libssh-850936900fb95e59fbc15d3f1d9993385326977f.tar.xz
libssh-850936900fb95e59fbc15d3f1d9993385326977f.zip
buffer: use ssh_buffer_get() instead of ssh_buffer_get_begin()
This commit is a preparatory stage for removing ssh_buffer_get_begin(). Note that removing ssh_buffer_get_begin() doesn't break API compatibility, as this functions has never been exposed (it only has the LIBSSH_API prefix). Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Diffstat (limited to 'src/kex1.c')
-rw-r--r--src/kex1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kex1.c b/src/kex1.c
index 10e6327d..16919847 100644
--- a/src/kex1.c
+++ b/src/kex1.c
@@ -66,7 +66,7 @@ static ssh_string make_rsa1_string(ssh_string e, ssh_string n){
goto error;
}
- ssh_string_fill(ret, ssh_buffer_get_begin(buffer), ssh_buffer_get_len(buffer));
+ ssh_string_fill(ret, ssh_buffer_get(buffer), ssh_buffer_get_len(buffer));
error:
ssh_buffer_free(buffer);
ssh_string_free(rsa);