1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/source4/torture/ndr
Stefan Metzmacher f0a1f1789c torture/ndr: make check functions typesafe
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14452

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Samuel Cabrero <scabrero@samba.org>
2021-07-08 09:30:40 +00:00
..
atsvc.c
backupkey.c
cabinet.c ndr: Free memory in torture test to satisfy sanitizer 2019-08-08 10:08:32 +00:00
charset.c
clusapi.c ndr: Free memory in torture test to satisfy sanitizer 2019-08-08 10:08:32 +00:00
dfs.c
dfsblob.c
dnsp.c Fix clang 9 constant-conversion warnings 2020-05-08 09:31:31 +00:00
drsblobs.c
drsuapi.c
epmap.c
krb5pac.c
lsa.c torture/ndr: make check functions typesafe 2021-07-08 09:30:40 +00:00
nbt.c
ndr.c s4-torture: Add a test for ndr_syntax_id_from_string() 2021-01-28 16:58:35 +00:00
ndr.h torture/ndr: make check functions typesafe 2021-07-08 09:30:40 +00:00
negoex.c
netlogon.c s4-torture: add netr_LogonGetDomainInfo NDR(64) tests 2019-09-20 02:32:44 +00:00
ntlmssp.c
ntprinting.c
README
samr.c
spoolss.c
string.c
svcctl.c librpc: fix IDL for svcctl_ChangeServiceConfigW 2020-03-09 15:00:31 +00:00
winreg.c
winspool.c
witness.c

use
	hexdump -v -e '12/1 "0x%02x, " "\n"' infile|outfile

to import ndr dumps


Or use gdb:

(gdb) b dump_printer
Breakpoint 1 at 0x49c92f: file ../source3/utils/net_printing.c, line 158.
(gdb) cond 1 strcmp(key_name, "s0bc") == 0
(gdb) run
Breakpoint 1, dump_printer (mem_ctx=0x700a20, key_name=0x11fb8f9 "s0bc", data=0x18f93d0 "H\032", length=1284, do_string_conversion=true) at ../source3/utils/net_printing.c:158
158             printf("found printer: %s\n", key_name);

-> Now use x/<length in byte>bx

(gdb) x/1284bx data

This prints data as hex values. 1284 is the length in byte (see the length
argument of the function). The b indicates byte.