summaryrefslogtreecommitdiff
path: root/as400
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2016-09-20 18:49:21 -0700
committerMark Adler <madler@alumni.caltech.edu>2016-09-20 18:55:37 -0700
commit9852c209ac49c0d8d1192e46115d7c37d4344bbd (patch)
tree875f72cb5cbc1724f180cc866cef203ddbe3c075 /as400
parent93b0af4aa73c8debe2cc18e56101700423096146 (diff)
downloadzlib-9852c209ac49c0d8d1192e46115d7c37d4344bbd.tar.gz
zlib-9852c209ac49c0d8d1192e46115d7c37d4344bbd.tar.bz2
zlib-9852c209ac49c0d8d1192e46115d7c37d4344bbd.zip
Add option to not compute or check check values.
The undocumented (except in these commit comments) function inflateValidate(strm, check) can be called after an inflateInit(), inflateInit2(), or inflateReset2() with check equal to zero to turn off the check value (CRC-32 or Adler-32) computation and comparison. Calling with check not equal to zero turns checking back on. This should only be called immediately after the init or reset function. inflateReset() does not change the state, so a previous inflateValidate() setting will remain in effect. This also turns off validation of the gzip header CRC when present. This should only be used when a zlib or gzip stream has already been checked, and repeated decompressions of the same stream no longer need to be validated.
Diffstat (limited to 'as400')
0 files changed, 0 insertions, 0 deletions