Switch to unified view

a/src/utils/base64.h b/src/utils/base64.h
...
...
18
#define _BASE64_H_INCLUDED_
18
#define _BASE64_H_INCLUDED_
19
#include <string>
19
#include <string>
20
20
21
void base64_encode(const std::string& in, std::string& out);
21
void base64_encode(const std::string& in, std::string& out);
22
bool base64_decode(const std::string& in, std::string& out);
22
bool base64_decode(const std::string& in, std::string& out);
23
inline std::string base64_encode(const std::string& in)
24
{
25
    std::string o;
26
    base64_encode(in, o);
27
    return o;
28
}
29
inline std::string base64_decode(const std::string& in)
30
{
31
    std::string o;
32
    if (base64_decode(in, o))
33
  return o;
34
    return std::string();
35
}
23
36
24
#endif /* _BASE64_H_INCLUDED_ */
37
#endif /* _BASE64_H_INCLUDED_ */