summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/util_str.c23
1 files changed, 0 insertions, 23 deletions
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
@@ -853,29 +853,6 @@ size_t strlen_m_term(const char *s)
}
/**
- 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<len;i++) {
- s[j] = '\\';
- s[j+1] = hex[((uint8_t)buf[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.
**/