aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2015-09-25 01:41:36 +0200
committerFabiano FidĂȘncio <fidencio@redhat.com>2016-01-19 11:31:08 +0100
commit58aff4495e8643514050be8bc62f164b16b710bb (patch)
tree2e9395ea3a128b998950835ef602bf4382a80c68 /include/libssh
parent3e2a61cc4756517137d59eb4a56b008796a8cbfc (diff)
downloadlibssh-58aff4495e8643514050be8bc62f164b16b710bb.tar.gz
libssh-58aff4495e8643514050be8bc62f164b16b710bb.tar.xz
libssh-58aff4495e8643514050be8bc62f164b16b710bb.zip
buffer: expose ssh_buffer_reinit()
Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/buffer.h1
-rw-r--r--include/libssh/libssh.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/include/libssh/buffer.h b/include/libssh/buffer.h
index a410bc5b..3bdd6753 100644
--- a/include/libssh/buffer.h
+++ b/include/libssh/buffer.h
@@ -72,7 +72,6 @@ int _ssh_buffer_unpack(struct ssh_buffer_struct *buffer,
int ssh_buffer_prepend_data(ssh_buffer buffer, const void *data, uint32_t len);
int ssh_buffer_add_buffer(ssh_buffer buffer, ssh_buffer source);
-int ssh_buffer_reinit(ssh_buffer buffer);
/* ssh_buffer_get_rest returns a pointer to the current position into the buffer */
void *ssh_buffer_get(ssh_buffer buffer);
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 11e0f4fc..635e015f 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -681,6 +681,7 @@ LIBSSH_API const char* ssh_get_hmac_out(ssh_session session);
LIBSSH_API ssh_buffer ssh_buffer_new(void);
LIBSSH_API void ssh_buffer_free(ssh_buffer buffer);
+LIBSSH_API int ssh_buffer_reinit(ssh_buffer buffer);
LIBSSH_API uint32_t ssh_buffer_get_len(ssh_buffer buffer);
#ifndef LIBSSH_LEGACY_0_4