diff options
author | Fabiano FidĂȘncio <fidencio@redhat.com> | 2015-09-25 01:41:36 +0200 |
---|---|---|
committer | Fabiano FidĂȘncio <fidencio@redhat.com> | 2016-01-19 11:31:08 +0100 |
commit | 58aff4495e8643514050be8bc62f164b16b710bb (patch) | |
tree | 2e9395ea3a128b998950835ef602bf4382a80c68 /include | |
parent | 3e2a61cc4756517137d59eb4a56b008796a8cbfc (diff) | |
download | libssh-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')
-rw-r--r-- | include/libssh/buffer.h | 1 | ||||
-rw-r--r-- | include/libssh/libssh.h | 1 |
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 |