From e1369f8720517796438dc57da1965efcfff25ff5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 10 May 2005 01:56:00 +0000 Subject: r6688: removed unused binary_string() function (This used to be commit 0b48c69e0b94571173a12714b22d3d5e2af17bcf) --- source4/lib/util_str.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'source4/lib') diff --git a/source4/lib/util_str.c b/source4/lib/util_str.c index 5d12a01f6e..69a4395cfb 100644 --- a/source4/lib/util_str.c +++ b/source4/lib/util_str.c @@ -852,29 +852,6 @@ size_t strlen_m_term(const char *s) return strlen_m(s) + 1; } -/** - Return a RFC2254 binary string representation of a buffer. - Used in LDAP filters. - Caller must free. -**/ -char *binary_string(char *buf, int len) -{ - char *s; - int i, j; - const char *hex = "0123456789ABCDEF"; - s = malloc(len * 3 + 1); - if (!s) - return NULL; - for (j=i=0;i> 4]; - s[j+2] = hex[((uint8_t)buf[i]) & 0xF]; - j += 3; - } - s[j] = 0; - return s; -} - /** Unescape a URL encoded string, in place. **/ -- cgit