aboutsummaryrefslogtreecommitdiff
path: root/src/gzip.c
AgeCommit message (Collapse)AuthorFilesLines
2023-01-09Reformat gzip.cJakub Jelen1-157/+183
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Norbert Pocs <npocs@redhat.com>
2022-10-12Fix various spelling issues reported by codespellJakub Jelen1-1/+1
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
2022-06-15Fix type mismatch warningsNorbert Pocs1-4/+4
Signed-off-by: Norbert Pocs <npocs@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2021-06-16Make the transfer buffer size configurableXiang Xiao1-0/+2
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Change-Id: I5052bac703b5a0c289ca5c28569cadeb54d3d507
2019-12-09gzip: Use SSH_BUFFER_FREE()Andreas Schneider1-11/+11
Fixes T183 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2019-12-09SSH-01-006: Add missing NULL check in gzip_decompress()Andreas Schneider1-0/+4
Fixes T193 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2019-05-28gzip: Add missing NULL checkAndreas Schneider1-0/+3
CID 1398980 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2019-01-09packet: Introduce a new function to access cryptoJakub Jelen1-7/+15
And remove most of the direct access to the structure throughout the code Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Daiki Ueno <dueno@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-09-04gzip: Use calloc in initcompress() and initdecompress()Andreas Schneider1-4/+2
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2018-06-28Remove vim modelines from all filesAndreas Schneider1-2/+0
If you want modelines use my vim plugin: https://github.com/cryptomilk/git-modeline.vim git config --add vim.modeline "ts=4 sw=4 et" Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-19buffer: do not use ssh_buffer_get_rest_len()Fabiano Fidêncio1-5/+5
As ssh_buffer_get_len() actually calls ssh_buffer_get_rest_len(), let's just use the first one. This is a preparatory step for removing ssh_buffer_get_rest_len(). Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-19buffer: rename ssh_buffer_get_rest() to ssh_buffer_get()Fabiano Fidêncio1-4/+4
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-19cleanup: use ssh_ prefix in the buffer (non-static) functionsFabiano Fidêncio1-7/+7
Having "ssh_" prefix in the functions' name will avoid possible clashes when compiling libssh statically. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-01-19src: Rename buffer_add_data() to ssh_buffer_add_data().Andreas Schneider1-4/+4
2014-01-19src: Rename buffer_init to ssh_buffer_init().Andreas Schneider1-2/+2
2014-01-07src: Update my mail address.Andreas Schneider1-1/+1
2012-02-05session: Use a struct for all options.Andreas Schneider1-1/+1
2011-09-18gzip: Fix zlib support.Andreas Schneider1-4/+1
2011-09-18priv: Remove crypto.h and add correct includes to src files.Andreas Schneider1-3/+5
2011-08-09Fix "status -5 inflating zlib packet"Mark Riordan1-1/+1
Signed-off-by: Mark Riordan <mriordan@ipswitch.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2010-12-27Added compression options and allow "yes/no" settingAris Adamantiadis1-1/+1
SSH_OPTION_COMPRESSION and SSH_OPTION_COMPRESSION_LEVEL options have been added. Now, end-level apps may simply choose to enable compression without knowing the relevant algorithms behind it.
2010-10-03Removed references to ssh_buffer_get_beginAris Adamantiadis1-3/+3
2010-10-01First step getting rid of ssh_buffer_get_beginAris Adamantiadis1-3/+3
2010-09-06misc: Rename libssh/ to src/Andreas Schneider1-0/+222