summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-05-10 01:56:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:16:34 -0500
commite1369f8720517796438dc57da1965efcfff25ff5 (patch)
tree1e79228ed90f75f21a7aa06a81503dfc87eb112e /source4/lib
parent61d95606d06b7ee9541b2097c693afd042459f31 (diff)
downloadsamba-e1369f8720517796438dc57da1965efcfff25ff5.tar.gz
samba-e1369f8720517796438dc57da1965efcfff25ff5.tar.bz2
samba-e1369f8720517796438dc57da1965efcfff25ff5.zip
r6688: removed unused binary_string() function
(This used to be commit 0b48c69e0b94571173a12714b22d3d5e2af17bcf)
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.
**/