diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/filters/comp_filter.cpp | 4 | ||||
-rw-r--r-- | src/lib/filters/comp_filter.h | 4 | ||||
-rw-r--r-- | src/lib/filters/info.txt | 1 |
3 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/filters/comp_filter.cpp b/src/lib/filters/comp_filter.cpp index a89fd68ae..8df334654 100644 --- a/src/lib/filters/comp_filter.cpp +++ b/src/lib/filters/comp_filter.cpp @@ -12,6 +12,8 @@ namespace Botan { +#if defined(BOTAN_HAS_COMPRESSION) + Compression_Filter::Compression_Filter(const std::string& type, size_t level, size_t bs) : m_comp(make_compressor(type)), m_buffersize(std::max<size_t>(bs, 256)), @@ -108,4 +110,6 @@ void Decompression_Filter::end_msg() send(m_buffer); } +#endif + } diff --git a/src/lib/filters/comp_filter.h b/src/lib/filters/comp_filter.h index 4d347c42d..c7f8e181a 100644 --- a/src/lib/filters/comp_filter.h +++ b/src/lib/filters/comp_filter.h @@ -12,6 +12,8 @@ namespace Botan { +#if defined(BOTAN_HAS_COMPRESSION) + class Compression_Algorithm; class Decompression_Algorithm; @@ -58,6 +60,8 @@ class BOTAN_DLL Decompression_Filter : public Filter secure_vector<byte> m_buffer; }; +#endif + } #endif diff --git a/src/lib/filters/info.txt b/src/lib/filters/info.txt index 217baea1d..620c1e6cc 100644 --- a/src/lib/filters/info.txt +++ b/src/lib/filters/info.txt @@ -35,6 +35,5 @@ out_buf.h </header:internal> <requires> -compression modes </requires> |