summaryrefslogtreecommitdiffstats
path: root/lib/util/samba_util.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-02-03 03:27:19 +0100
committerVolker Lendecke <vl@samba.org>2012-02-06 09:15:32 +0100
commita0e44c30e21013f0136ddefc1bbbdc020413e749 (patch)
treebf5ffefbbefe58149e736bd3210ccdae75463cfd /lib/util/samba_util.h
parent74ca6d1ddb1c5a4fbe9ddb29566878efe1761897 (diff)
downloadsamba-a0e44c30e21013f0136ddefc1bbbdc020413e749.tar.gz
samba-a0e44c30e21013f0136ddefc1bbbdc020413e749.tar.xz
samba-a0e44c30e21013f0136ddefc1bbbdc020413e749.zip
lib/util: Add hex_encode_buf
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Feb 6 09:15:33 CET 2012 on sn-devel-104
Diffstat (limited to 'lib/util/samba_util.h')
-rw-r--r--lib/util/samba_util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/util/samba_util.h b/lib/util/samba_util.h
index 9df3ddfcd0e..5ce2e5e5352 100644
--- a/lib/util/samba_util.h
+++ b/lib/util/samba_util.h
@@ -262,6 +262,11 @@ _PUBLIC_ size_t strhex_to_str(char *p, size_t p_len, const char *strhex, size_t
_PUBLIC_ _PURE_ DATA_BLOB strhex_to_data_blob(TALLOC_CTX *mem_ctx, const char *strhex) ;
/**
+ * Print a buf in hex. Assumes dst is at least (srclen*2)+1 large.
+ */
+_PUBLIC_ void hex_encode_buf(char *dst, const uint8_t *src, size_t srclen);
+
+/**
* Routine to print a buffer as HEX digits, into an allocated string.
*/
_PUBLIC_ void hex_encode(const unsigned char *buff_in, size_t len, char **out_hex_buffer);