about summary refs log tree commit diff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-02-09T14·09+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-02-10T10·33+0100
commita596c525ad3ca86226cdb8094b91a578b23c1dae (patch)
tree04e09211da695cc2d2d72eac119be18dbd370c1c /src/libutil/util.hh
parent70cae879e3c3f5c3fba906ba5ec220f84cff1d61 (diff)
Add base64 encoder/decoder
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 1a2dda527121..20330fb7699e 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -398,4 +398,9 @@ void ignoreException();
 string filterANSIEscapes(const string & s, bool nixOnly = false);
 
 
+/* Base64 encoding/decoding. */
+string base64Encode(const string & s);
+string base64Decode(const string & s);
+
+
 }