30#if defined(BOTAN_HAS_ZLIB)
31 if(
name ==
"Zlib" ||
name ==
"zlib") {
32 return std::make_unique<Zlib_Compression>();
35 return std::make_unique<Gzip_Compression>();
37 if(
name ==
"Deflate" ||
name ==
"deflate") {
38 return std::make_unique<Deflate_Compression>();
42#if defined(BOTAN_HAS_BZIP2)
43 if(
name ==
"bzip2" ||
name ==
"bz2" ||
name ==
"Bzip2") {
44 return std::make_unique<Bzip2_Compression>();
48#if defined(BOTAN_HAS_LZMA)
50 return std::make_unique<LZMA_Compression>();
68#if defined(BOTAN_HAS_ZLIB)
69 if(
name ==
"Zlib" ||
name ==
"zlib") {
70 return std::make_unique<Zlib_Decompression>();
73 return std::make_unique<Gzip_Decompression>();
75 if(
name ==
"Deflate" ||
name ==
"deflate") {
76 return std::make_unique<Deflate_Decompression>();
80#if defined(BOTAN_HAS_BZIP2)
81 if(
name ==
"bzip2" ||
name ==
"bz2" ||
name ==
"Bzip2") {
82 return std::make_unique<Bzip2_Decompression>();
86#if defined(BOTAN_HAS_LZMA)
88 return std::make_unique<LZMA_Decompression>();