summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr/ndr_basic.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-17 11:55:56 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-17 11:55:56 +0000
commitd285c6f14f7ad7037e1a81d59da8b3c892a49884 (patch)
tree07c6ac5184aef953d5cf82b653f9f56dd6942cfd /source4/librpc/ndr/ndr_basic.c
parentfb53302c8eb32603098b17bcf2fad16af66e9a60 (diff)
downloadsamba-d285c6f14f7ad7037e1a81d59da8b3c892a49884.tar.gz
samba-d285c6f14f7ad7037e1a81d59da8b3c892a49884.tar.bz2
samba-d285c6f14f7ad7037e1a81d59da8b3c892a49884.zip
* add another WERR err code
* use the top-level function argument printing to show more detail in RPC-* tests (This used to be commit 33bb8785625b1845750f28f2d810e7096afe9f8e)
Diffstat (limited to 'source4/librpc/ndr/ndr_basic.c')
-rw-r--r--source4/librpc/ndr/ndr_basic.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/source4/librpc/ndr/ndr_basic.c b/source4/librpc/ndr/ndr_basic.c
index ee03e5aaa2..3d87b9efc6 100644
--- a/source4/librpc/ndr/ndr_basic.c
+++ b/source4/librpc/ndr/ndr_basic.c
@@ -591,6 +591,11 @@ void ndr_print_nstring(struct ndr_print *ndr, const char *name, const char **s)
ndr_print_unistr(ndr, name, *s);
}
+void ndr_print_DATA_BLOB(struct ndr_print *ndr, const char *name, DATA_BLOB r)
+{
+ ndr->print(ndr, "%-25s: DATA_BLOB length=%u", name, r.length);
+}
+
/*
push a DATA_BLOB onto the wire.
@@ -635,3 +640,14 @@ NTSTATUS ndr_push_policy_handle(struct ndr_push *ndr,
NDR_CHECK(ndr_push_bytes(ndr, r->data, 20));
return NT_STATUS_OK;
}
+
+
+void ndr_print_policy_handle(struct ndr_print *ndr, const char *name, struct policy_handle *r)
+{
+ ndr->print(ndr, "%-25s: policy_handle %02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
+ name,
+ r->data[0], r->data[1], r->data[2], r->data[3], r->data[4],
+ r->data[5], r->data[6], r->data[7], r->data[8], r->data[9],
+ r->data[10], r->data[11], r->data[12], r->data[13], r->data[14],
+ r->data[15], r->data[16], r->data[17], r->data[18], r->data[19]);
+}