diff options
author | Volker Lendecke <vl@samba.org> | 2012-02-03 03:27:19 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-02-06 09:15:32 +0100 |
commit | a0e44c30e21013f0136ddefc1bbbdc020413e749 (patch) | |
tree | bf5ffefbbefe58149e736bd3210ccdae75463cfd /lib/util/samba_util.h | |
parent | 74ca6d1ddb1c5a4fbe9ddb29566878efe1761897 (diff) | |
download | samba-a0e44c30e21013f0136ddefc1bbbdc020413e749.tar.gz samba-a0e44c30e21013f0136ddefc1bbbdc020413e749.tar.bz2 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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/util/samba_util.h b/lib/util/samba_util.h index 9df3ddfcd0..5ce2e5e535 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); |