1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-10-31 23:30:25 +03:00

decomp: remove the free_dest argument

Since the decompress function ALWAYS returns allocated memory we get a
lot simpler code by removing the ability to return data unallocated.
This commit is contained in:
Daniel Stenberg
2010-11-03 15:03:57 +01:00
parent a6fc9aeec9
commit 588c8946fc
3 changed files with 14 additions and 53 deletions

View File

@@ -892,9 +892,11 @@ struct _LIBSSH2_COMP_METHOD
void **abstract);
int (*decomp) (LIBSSH2_SESSION *session,
unsigned char **dest,
size_t *dest_len, size_t payload_limit,
int *free_dest, const unsigned char *src,
size_t src_len, void **abstract);
size_t *dest_len,
size_t payload_limit,
const unsigned char *src,
size_t src_len,
void **abstract);
int (*dtor) (LIBSSH2_SESSION * session, int compress, void **abstract);
};