summaryrefslogtreecommitdiff
path: root/lib/util/util.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-03-30 17:49:01 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-03-30 12:17:05 +0200
commita64958a8805b6ef1758293697e63309d3ddbe4ae (patch)
tree325ced3f0b6910c7761a2ddd9a6500493c2c0a87 /lib/util/util.h
parent48d0abe0b50b4e0414f5dcb46aae2a4b5bfaac7e (diff)
downloadsamba-a64958a8805b6ef1758293697e63309d3ddbe4ae.tar.gz
lib/util Move base64 functions into lib/util/base64.c
Andrew Bartlett
Diffstat (limited to 'lib/util/util.h')
-rw-r--r--lib/util/util.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/util/util.h b/lib/util/util.h
index 48d6566dd09..45779912f31 100644
--- a/lib/util/util.h
+++ b/lib/util/util.h
@@ -410,6 +410,19 @@ _PUBLIC_ int strwicmp(const char *psz1, const char *psz2);
_PUBLIC_ void string_replace(char *s, char oldc, char newc);
/**
+ Base64 decode a string, place into a data blob. Caller to data_blob_free() the result.
+**/
+_PUBLIC_ DATA_BLOB base64_decode_data_blob(const char *s);
+/**
+ Base64 decode a string, inplace
+**/
+_PUBLIC_ void base64_decode_inplace(char *s);
+/**
+ Base64 encode a binary data blob into a string
+**/
+_PUBLIC_ char *base64_encode_data_blob(TALLOC_CTX *mem_ctx, DATA_BLOB data);
+
+/**
* Compare 2 strings.
*
* @note The comparison is case-insensitive.