diff options
-rw-r--r-- | src/cms/cms_comp.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cms/cms_comp.cpp b/src/cms/cms_comp.cpp index 60477e8ac..a0e777321 100644 --- a/src/cms/cms_comp.cpp +++ b/src/cms/cms_comp.cpp @@ -53,6 +53,9 @@ void CMS_Encoder::compress(const std::string& algo) *************************************************/ bool CMS_Encoder::can_compress_with(const std::string& algo) { + if(algo == "") + throw Invalid_Algorithm_Name("Empty string to can_compress_with"); + #if defined(BOTAN_HAS_COMPRESSOR_ZLIB) if(algo == "Zlib") return true; |