summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr/ndr_basic.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-15 10:58:29 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-15 10:58:29 +0000
commite92419e2d35126f98af6c22fe5e0224421998aad (patch)
tree25b71827fbc7bdb25f76d6253d93c2ed378a9d13 /source4/librpc/ndr/ndr_basic.c
parent54ccb9c6a2510c3e76603459f09d911c1dc3354e (diff)
downloadsamba-e92419e2d35126f98af6c22fe5e0224421998aad.tar.gz
samba-e92419e2d35126f98af6c22fe5e0224421998aad.tar.bz2
samba-e92419e2d35126f98af6c22fe5e0224421998aad.zip
added samr_UserInfo2 and samr_UserInfo3
(This used to be commit 5e852f694c039ae8bde3490be9e0c4959c1e93f0)
Diffstat (limited to 'source4/librpc/ndr/ndr_basic.c')
-rw-r--r--source4/librpc/ndr/ndr_basic.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/source4/librpc/ndr/ndr_basic.c b/source4/librpc/ndr/ndr_basic.c
index 89c16ca76a..6239e56b3f 100644
--- a/source4/librpc/ndr/ndr_basic.c
+++ b/source4/librpc/ndr/ndr_basic.c
@@ -483,6 +483,24 @@ void ndr_print_array_uint32(struct ndr_print *ndr, const char *name,
ndr->depth--;
}
+void ndr_print_array_uint8(struct ndr_print *ndr, const char *name,
+ uint8 *data, uint32 count)
+{
+ int i;
+
+ ndr->print(ndr, "%s: ARRAY(%d)", name, count);
+ ndr->depth++;
+ for (i=0;i<count;i++) {
+ char *idx=NULL;
+ asprintf(&idx, "[%d]", i);
+ if (idx) {
+ ndr_print_uint8(ndr, idx, data[i]);
+ free(idx);
+ }
+ }
+ ndr->depth--;
+}
+
void ndr_print_GUID(struct ndr_print *ndr, const char *name, struct GUID *guid)
{
ndr->print(ndr, "%-25s: %08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",