From e7705f9eb920715b95a331e2f3c1f1c60258ac18 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 11 Jul 2007 10:26:02 +0000 Subject: r23829: Add ads_get_attrname_by_guid(). Guenther (This used to be commit a84fd8300661fd895ed7a8a104b743628718dfc8) --- source3/lib/util_uuid.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'source3/lib') 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); +} + + -- cgit