summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-07-11 10:26:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:28:31 -0500
commite7705f9eb920715b95a331e2f3c1f1c60258ac18 (patch)
tree22a261f3387e7af006975ff40a6869d5ab62833a /source3/lib
parentf0072e54767de3c964ee3c9ed732ab0b58d05004 (diff)
downloadsamba-e7705f9eb920715b95a331e2f3c1f1c60258ac18.tar.gz
samba-e7705f9eb920715b95a331e2f3c1f1c60258ac18.tar.bz2
samba-e7705f9eb920715b95a331e2f3c1f1c60258ac18.zip
r23829: Add ads_get_attrname_by_guid().
Guenther (This used to be commit a84fd8300661fd895ed7a8a104b743628718dfc8)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_uuid.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/lib/util_uuid.c b/source3/lib/util_uuid.c
index a20387e8e5..4a9c0848d2 100644
--- a/source3/lib/util_uuid.c
+++ b/source3/lib/util_uuid.c
@@ -133,3 +133,19 @@ BOOL smb_string_to_uuid(const char *in, struct GUID* uu)
out:
return ret;
}
+
+/*****************************************************************
+ Return the binary string representation of a GUID.
+ Caller must free.
+*****************************************************************/
+
+char *guid_binstring(const struct GUID *guid)
+{
+ UUID_FLAT guid_flat;
+
+ smb_uuid_pack(*guid, &guid_flat);
+
+ return binary_string_rfc2254((char *)guid_flat.info, UUID_FLAT_SIZE);
+}
+
+