diff options
author | lloyd <[email protected]> | 2015-05-13 03:00:10 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2015-05-13 03:00:10 +0000 |
commit | cb2b4498d2a0c8a15e2a66aa3c5f0d7ffa4cf058 (patch) | |
tree | c002be7e34bd0c6973b9d49f92ee7973c5152e59 /src/lib/compression/compression.cpp | |
parent | a1524df3c1b7bee3bfd7cab3309f763b3e9599a7 (diff) |
Add tests for compression and SRP.
Fix zlib decompression which was not ignoring Z_BUF_ERROR which is
harmless in this context as process is already checking avail_in
and avail_out after run returns.
Bump version to 1.11.17
Diffstat (limited to 'src/lib/compression/compression.cpp')
-rw-r--r-- | src/lib/compression/compression.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/compression/compression.cpp b/src/lib/compression/compression.cpp index 89d3a68e7..499fc1adf 100644 --- a/src/lib/compression/compression.cpp +++ b/src/lib/compression/compression.cpp @@ -128,16 +128,19 @@ void Stream_Compression::process(secure_vector<byte>& buf, size_t offset, u32bit void Stream_Compression::update(secure_vector<byte>& buf, size_t offset) { + BOTAN_ASSERT(m_stream, "Initialized"); process(buf, offset, m_stream->run_flag()); } void Stream_Compression::flush(secure_vector<byte>& buf, size_t offset) { + BOTAN_ASSERT(m_stream, "Initialized"); process(buf, offset, m_stream->flush_flag()); } void Stream_Compression::finish(secure_vector<byte>& buf, size_t offset) { + BOTAN_ASSERT(m_stream, "Initialized"); process(buf, offset, m_stream->finish_flag()); clear(); } |