summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr/ndr_sec.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-03-15 14:42:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:11:04 -0500
commitcead12981f86f8c30daf50995d61ff3af9439898 (patch)
tree7e03ac7699a767bc9f8f991c87bb72ff6677ee06 /source4/librpc/ndr/ndr_sec.c
parent9743bdf86fe44babed74fc06264337ded8c43382 (diff)
downloadsamba-cead12981f86f8c30daf50995d61ff3af9439898.tar.gz
samba-cead12981f86f8c30daf50995d61ff3af9439898.tar.bz2
samba-cead12981f86f8c30daf50995d61ff3af9439898.zip
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)
Diffstat (limited to 'source4/librpc/ndr/ndr_sec.c')
-rw-r--r--source4/librpc/ndr/ndr_sec.c10
1 files changed, 10 insertions, 0 deletions
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
@@ -80,6 +80,16 @@ size_t ndr_size_dom_sid(struct dom_sid *sid)
}
/*
+ 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
*/
size_t ndr_size_security_ace(struct security_ace *ace)