diff options
author | Volker Lendecke <vl@samba.org> | 2015-05-08 10:24:48 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2015-05-13 01:44:20 +0200 |
commit | 98f414c959a1a3b539f91885f4a2c8668149ae10 (patch) | |
tree | 0d804a13f46b93f36e750f6c78f5ecbe5c3bed39 /lib/util/util.c | |
parent | c8e9574f41f912b26a9947c4973752f24c7ad904 (diff) | |
download | samba-98f414c959a1a3b539f91885f4a2c8668149ae10.tar.gz |
lib: Remove unused hex_encode()
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/util/util.c')
-rw-r--r-- | lib/util/util.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/util/util.c b/lib/util/util.c index 562f7df2d54..9ef71242039 100644 --- a/lib/util/util.c +++ b/lib/util/util.c @@ -932,19 +932,7 @@ _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) -{ - char *hex_buffer; - - *out_hex_buffer = malloc_array_p(char, (len*2)+1); - hex_buffer = *out_hex_buffer; - hex_encode_buf(hex_buffer, buff_in, len); -} - -/** - * talloc version of hex_encode() + * talloc version of hex_encode_buf() */ _PUBLIC_ char *hex_encode_talloc(TALLOC_CTX *mem_ctx, const unsigned char *buff_in, size_t len) { |