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:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user