From cead12981f86f8c30daf50995d61ff3af9439898 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 15 Mar 2005 14:42:09 +0000 Subject: r5799: more DsGetNCChanges updates, I'm starting to understand it... also add a really simple torture test for DsGetNCChanges metze (This used to be commit bcde67a7eff9ad82919e90fd64c02a17610c6f0e) --- source4/librpc/ndr/ndr_sec.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source4/librpc/ndr/ndr_sec.c') diff --git a/source4/librpc/ndr/ndr_sec.c b/source4/librpc/ndr/ndr_sec.c index 162d684b03..22479be7e5 100644 --- a/source4/librpc/ndr/ndr_sec.c +++ b/source4/librpc/ndr/ndr_sec.c @@ -79,6 +79,16 @@ size_t ndr_size_dom_sid(struct dom_sid *sid) return 8 + 4*sid->num_auths; } +/* + return the wire size of a dom_sid +*/ +size_t ndr_length_dom_sid(struct dom_sid *sid) +{ + if (!sid) return 0; + if (sid->sid_rev_num == 0) return 0; + return 8 + 4*sid->num_auths; +} + /* return the wire size of a security_ace */ -- cgit