~singpolyma/biboumi

ref: 189015afb4632bd1dc78c1bd87bed1ca4cc48b19 biboumi/src/utils/base64.cpp -rw-r--r-- 248 bytes
189015af — louiz’ Conditionally compile the SASL code only with botan and database 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <utils/base64.hpp>

#ifdef BOTAN_FOUND
#include <botan/base64.h>

namespace base64
{

std::string encode(const std::string &input)
{
  return Botan::base64_encode(reinterpret_cast<const uint8_t*>(input.data()), input.size());
}

}

#endif