aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2018-02-28 10:24:50 -0600
committerAndreas Schneider <asn@cryptomilk.org>2018-06-04 16:55:23 +0200
commit36d52ee205512140d1d7dad6e990c925fe153837 (patch)
treea8ae51f9b62fd6cbbb5c815e8e5a26372abcdf43 /include/libssh
parent0ad462102a313d22c60b32f4f1c9210839480fb3 (diff)
downloadlibssh-36d52ee205512140d1d7dad6e990c925fe153837.tar.gz
libssh-36d52ee205512140d1d7dad6e990c925fe153837.tar.xz
libssh-36d52ee205512140d1d7dad6e990c925fe153837.zip
buffer: Add ssh_buffer_allocate() function
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/buffer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libssh/buffer.h b/include/libssh/buffer.h
index 81d9452b..14ce5e67 100644
--- a/include/libssh/buffer.h
+++ b/include/libssh/buffer.h
@@ -50,6 +50,7 @@ int ssh_buffer_add_u64(ssh_buffer buffer, uint64_t data);
int ssh_buffer_validate_length(struct ssh_buffer_struct *buffer, size_t len);
+void *ssh_buffer_allocate(struct ssh_buffer_struct *buffer, uint32_t len);
int ssh_buffer_pack_va(struct ssh_buffer_struct *buffer,
const char *format,
int argc,