svn commit: samba r6688 - in branches/SAMBA_4_0/source/lib: .
tridge at samba.org
tridge at samba.org
Tue May 10 01:56:04 GMT 2005
Author: tridge
Date: 2005-05-10 01:56:00 +0000 (Tue, 10 May 2005)
New Revision: 6688
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6688
Log:
removed unused binary_string() function
Modified:
branches/SAMBA_4_0/source/lib/util_str.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/util_str.c
===================================================================
--- branches/SAMBA_4_0/source/lib/util_str.c 2005-05-10 01:55:18 UTC (rev 6687)
+++ branches/SAMBA_4_0/source/lib/util_str.c 2005-05-10 01:56:00 UTC (rev 6688)
@@ -853,29 +853,6 @@
}
/**
- 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.
**/
More information about the samba-cvs
mailing list