From 2c7f6da1fa95ff77d6c60fcd109205847519434f Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Thu, 12 Nov 1998 23:35:05 +0000 Subject: security descriptors. kanji const char* warnings. (This used to be commit 06abdfd68e1d7fa8741afc3f56ec7a13b5fa4ccc) --- source3/lib/util_sid.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'source3/lib/util_sid.c') diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c index 17af94a79c..9ca3a59ad4 100644 --- a/source3/lib/util_sid.c +++ b/source3/lib/util_sid.c @@ -176,3 +176,16 @@ BOOL sid_equal(DOM_SID *sid1, DOM_SID *sid2) return True; } + + +/***************************************************************** + calculates size of a sid +*****************************************************************/ +int sid_size(DOM_SID *sid) +{ + if (sid == NULL) + { + return 0; + } + return sid->num_auths * sizeof(uint32) + 8; +} -- cgit