diff options
| author | Fabiano Fidêncio <fidencio@redhat.com> | 2015-09-25 01:41:36 +0200 |
|---|---|---|
| committer | Fabiano Fidêncio <fidencio@redhat.com> | 2015-10-12 13:56:21 +0200 |
| commit | 424cbad8e22f82567db537890d49c9b0126e4e9b (patch) | |
| tree | b5c29f399f291f78fccf68b1812ecccb5389fbc5 /include | |
| parent | 9312d4e553f9711dbb5dadce04d4b7c367c9fa1b (diff) | |
| download | libssh-424cbad8e22f82567db537890d49c9b0126e4e9b.tar.gz libssh-424cbad8e22f82567db537890d49c9b0126e4e9b.tar.xz libssh-424cbad8e22f82567db537890d49c9b0126e4e9b.zip | |
buffer: expose ssh_buffer_reinit()
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
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 f4356bd9..654f0eea 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -680,6 +680,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 |
