summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-11-09 11:32:47 +0100
committerStefan Metzmacher <metze@samba.org>2012-12-03 08:48:20 +0100
commit3f0c31fbd388986d636b5701f66ed7b215a1b903 (patch)
tree042222b2558204c1ed6c2971026bc33a62772337 /source3/winbindd
parent6f71071381ead9976f4a6d296c9a1ade385484e0 (diff)
downloadsamba-3f0c31fbd388986d636b5701f66ed7b215a1b903.tar.gz
samba-3f0c31fbd388986d636b5701f66ed7b215a1b903.tar.bz2
samba-3f0c31fbd388986d636b5701f66ed7b215a1b903.zip
s3:winbindd:util: add a comment explaining the function parse_sidlist()
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_util.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_util.c b/source3/winbindd/winbindd_util.c
index 25ef750075..6e13ca8ba7 100644
--- a/source3/winbindd/winbindd_util.c
+++ b/source3/winbindd/winbindd_util.c
@@ -1360,6 +1360,15 @@ bool is_domain_online(const struct winbindd_domain *domain)
return !is_domain_offline(domain);
}
+/**
+ * Parse an char array into a list of sids.
+ *
+ * The input sidstr should consist of 0-terminated strings
+ * representing sids, separated by newline characters '\n'.
+ * The list is terminated by an empty string, i.e.
+ * character '\0' directly following a character '\n'
+ * (or '\0' right at the start of sidstr).
+ */
bool parse_sidlist(TALLOC_CTX *mem_ctx, const char *sidstr,
struct dom_sid **sids, uint32_t *num_sids)
{