diff options
Diffstat (limited to 'source/lib/data_blob.c')
-rw-r--r-- | source/lib/data_blob.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/source/lib/data_blob.c b/source/lib/data_blob.c index 66c5daf363..daba17df14 100644 --- a/source/lib/data_blob.c +++ b/source/lib/data_blob.c @@ -156,25 +156,3 @@ DATA_BLOB data_blob_talloc_zero(TALLOC_CTX *mem_ctx, size_t length) data_blob_clear(&blob); return blob; } - -/** -print the data_blob as hex string -**/ -_PUBLIC_ char *data_blob_hex_string(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob) -{ - int i; - char *hex_string; - - hex_string = talloc_array(mem_ctx, char, (blob->length*2)+1); - if (!hex_string) { - return NULL; - } - - for (i = 0; i < blob->length; i++) - slprintf(&hex_string[i*2], 3, "%02X", blob->data[i]); - - hex_string[(blob->length*2)] = '\0'; - return hex_string; -} - - |