diff options
author | Jack Lloyd <[email protected]> | 2016-11-04 10:57:47 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-11-04 10:57:47 -0400 |
commit | bb88e7c8c1cff8c671e8402c37929a67c67ea7e6 (patch) | |
tree | 2ff66bb9a9328a24592955cca60caa7918372df0 /src | |
parent | 062d5ee7c60249e720ab9af037264aaffd77cf31 (diff) |
Don't require compression in filter code
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> |