diff options
author | Günther Deschner <gd@samba.org> | 2007-07-11 10:26:02 +0000 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2007-07-11 10:26:02 +0000 |
commit | 61fd556f81365b69a89a15a28e65bd7a3f17d036 (patch) | |
tree | fca942d98e2735158adc5bbbd31219d53fe22f95 /source/lib | |
parent | 085d92e00dcc1108442be0f9081eadf18f240778 (diff) | |
download | samba-61fd556f81365b69a89a15a28e65bd7a3f17d036.tar.gz samba-61fd556f81365b69a89a15a28e65bd7a3f17d036.tar.xz samba-61fd556f81365b69a89a15a28e65bd7a3f17d036.zip |
r23829: Add ads_get_attrname_by_guid().
Guenther
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/util_uuid.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source/lib/util_uuid.c b/source/lib/util_uuid.c index a20387e8e59..4a9c0848d28 100644 --- a/source/lib/util_uuid.c +++ b/source/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); +} + + |