diff options
author | Fabiano FidĂȘncio <fidencio@redhat.com> | 2015-09-25 01:33:23 +0200 |
---|---|---|
committer | Fabiano FidĂȘncio <fidencio@redhat.com> | 2016-01-19 11:31:08 +0100 |
commit | 3e2a61cc4756517137d59eb4a56b008796a8cbfc (patch) | |
tree | bc68aa73a36e311ed6d7a2c9bf177a9cf1962a87 /include | |
parent | 120d2b533341836ba17e53af709659db78628c46 (diff) | |
download | libssh-3e2a61cc4756517137d59eb4a56b008796a8cbfc.tar.gz libssh-3e2a61cc4756517137d59eb4a56b008796a8cbfc.tar.xz libssh-3e2a61cc4756517137d59eb4a56b008796a8cbfc.zip |
libssh.h: move LIBSSH_API buffer' functions to libssh.h
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 | 4 | ||||
-rw-r--r-- | include/libssh/libssh.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/libssh/buffer.h b/include/libssh/buffer.h index 8134478f..a410bc5b 100644 --- a/include/libssh/buffer.h +++ b/include/libssh/buffer.h @@ -41,8 +41,6 @@ struct ssh_buffer_struct { #define SSH_BUFFER_PACK_END ((uint32_t) 0x4f65feb3) -LIBSSH_API void ssh_buffer_free(ssh_buffer buffer); -LIBSSH_API ssh_buffer ssh_buffer_new(void); void ssh_buffer_set_secure(ssh_buffer buffer); int ssh_buffer_add_ssh_string(ssh_buffer buffer, ssh_string string); int ssh_buffer_add_u8(ssh_buffer buffer, uint8_t data); @@ -78,8 +76,6 @@ 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); -/* ssh_buffer_get_len returns the number of bytes which can be read */ -LIBSSH_API uint32_t ssh_buffer_get_len(ssh_buffer buffer); /* buffer_read_*() returns the number of bytes read, except for ssh strings */ int ssh_buffer_get_u8(ssh_buffer buffer, uint8_t *data); diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 33608f1d..11e0f4fc 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -679,6 +679,10 @@ LIBSSH_API const char* ssh_get_cipher_out(ssh_session session); LIBSSH_API const char* ssh_get_hmac_in(ssh_session session); 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 uint32_t ssh_buffer_get_len(ssh_buffer buffer); + #ifndef LIBSSH_LEGACY_0_4 #include "libssh/legacy.h" #endif |