From b0667f7fda5d8f7fd110645f885c5503281d67f8 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 14 Mar 2011 08:10:13 +0100 Subject: s3: Remove some unused code --- source3/lib/util_str.c | 41 ----------------------------------------- 1 file changed, 41 deletions(-) (limited to 'source3/lib/util_str.c') diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index b26bde81c4..6a17297231 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -1576,47 +1576,6 @@ size_t strlen_m_term_null(const char *s) return len+1; } -/** - Return a RFC2254 binary string representation of a buffer. - Used in LDAP filters. - Caller must free. -**/ - -char *binary_string_rfc2254(TALLOC_CTX *mem_ctx, const uint8_t *buf, int len) -{ - char *s; - int i, j; - const char *hex = "0123456789ABCDEF"; - s = talloc_array(mem_ctx, char, len * 3 + 1); - if (s == NULL) { - return NULL; - } - for (j=i=0;i> 4]; - s[j+2] = hex[((unsigned char)buf[i]) & 0xF]; - j += 3; - } - s[j] = 0; - return s; -} - -char *binary_string(char *buf, int len) -{ - char *s; - int i, j; - const char *hex = "0123456789ABCDEF"; - s = (char *)SMB_MALLOC(len * 2 + 1); - if (!s) - return NULL; - for (j=i=0;i> 4]; - s[j+1] = hex[((unsigned char)buf[i]) & 0xF]; - j += 2; - } - s[j] = 0; - return s; -} /** Just a typesafety wrapper for snprintf into a fstring. -- cgit