From 536de25faef82611e61b12126d432368badeed65 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 10 Nov 2008 11:40:31 +1100 Subject: Add a new function to parse a DATA_BLOB into a GUID The reason for this new function is to ensure the length is not discarded when the input is a ldb_val (aka DATA_BLOB) in ldb. Andrew Bartlett --- librpc/ndr/libndr.h | 1 + 1 file changed, 1 insertion(+) (limited to 'librpc/ndr/libndr.h') diff --git a/librpc/ndr/libndr.h b/librpc/ndr/libndr.h index 127f6734e3..ad94c59e90 100644 --- a/librpc/ndr/libndr.h +++ b/librpc/ndr/libndr.h @@ -511,6 +511,7 @@ enum ndr_err_code ndr_push_charset(struct ndr_push *ndr, int ndr_flags, const ch /* GUIDs */ bool GUID_equal(const struct GUID *u1, const struct GUID *u2); +NTSTATUS GUID_from_data_blob(const DATA_BLOB *s, struct GUID *guid); NTSTATUS GUID_from_string(const char *s, struct GUID *guid); NTSTATUS NS_GUID_from_string(const char *s, struct GUID *guid); struct GUID GUID_zero(void); -- cgit