diff options
| author | Adam <Adam@anope.org> | 2011-04-25 03:16:57 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-05-16 04:07:56 -0400 |
| commit | 076ebafa1b4cc935c466c615b94eaac415af9a67 (patch) | |
| tree | dbc8b0f9e7b6f954569c13ad35598f5ebe8a081d /include/anope.h | |
| parent | 6922bd239c778e8f6f2081476ce20b9426c515ad (diff) | |
Moved some global functions to be member functions and misc cleanup
Diffstat (limited to 'include/anope.h')
| -rw-r--r-- | include/anope.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/anope.h b/include/anope.h index 7aa505661..fb201db1e 100644 --- a/include/anope.h +++ b/include/anope.h @@ -335,6 +335,18 @@ namespace Anope */ extern CoreExport void Unhex(const Anope::string &src, Anope::string &dest); extern CoreExport void Unhex(const Anope::string &src, char *dest); + + /** Base 64 encode a string + * @param src The string to encode + * @param target Where the encoded string is placed + */ + extern CoreExport void B64Encode(const Anope::string &src, Anope::string &target); + + /** Base 64 decode a string + * @param src The base64 encoded string + * @param target The plain text result + */ + extern CoreExport void B64Decode(const Anope::string &src, Anope::string &target); /** Returns a sequence of data formatted as the format argument specifies. ** After the format parameter, the function expects at least as many |
