diff options
author | louiz’ <louiz@louiz.org> | 2020-07-29 00:37:24 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2020-07-29 00:37:24 +0200 |
commit | 189015afb4632bd1dc78c1bd87bed1ca4cc48b19 (patch) | |
tree | be612c729f087d0cb9e237fb47e3f3c6d3f7e12d /src/utils/base64.cpp | |
parent | e4550d324feba5d054ded16c89a4628ed84454de (diff) | |
download | biboumi-189015afb4632bd1dc78c1bd87bed1ca4cc48b19.tar.gz biboumi-189015afb4632bd1dc78c1bd87bed1ca4cc48b19.tar.bz2 biboumi-189015afb4632bd1dc78c1bd87bed1ca4cc48b19.tar.xz biboumi-189015afb4632bd1dc78c1bd87bed1ca4cc48b19.zip |
Conditionally compile the SASL code only with botan and database
Diffstat (limited to 'src/utils/base64.cpp')
-rw-r--r-- | src/utils/base64.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/utils/base64.cpp b/src/utils/base64.cpp index 350e2db..c0959bb 100644 --- a/src/utils/base64.cpp +++ b/src/utils/base64.cpp @@ -2,18 +2,15 @@ #ifdef BOTAN_FOUND #include <botan/base64.h> -#endif namespace base64 { std::string encode(const std::string &input) { -#ifdef BOTAN_FOUND return Botan::base64_encode(reinterpret_cast<const uint8_t*>(input.data()), input.size()); -#else -#error "base64::encode() not yet implemented without Botan." -#endif } } + +#endif |