1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/source4/torture/ndr
Sean Finney 08abd1f5e8 librpc/ndr: add new LIBNDR_FLAG_STR_RAW8 for ndr_pull_string
Introduce a new flag, LIBNDR_FLAG_STR_RAW8, which indicates that libndr
should not attempt to convert the corresponding byte sequence, and place
the responsibility on the caller to do so later.

This is needed in cases where the string is known to be 8-bit and either
NULL terminated or of known length, but in an unspecified character set.
For example, when pulling PT_STRING8 properties from an exchange server
via libmapi + libndr, the codepage is neither known nor in the control
of the caller, and is determined by subsequent properties requested from
the server.  Therefore the client would like to fetch all properties in
one large batch, and convert the resulting strings locally.

This commit also includes some (basic) tests of each of the flags'
respective behaviors with the ndr push/pull string functions, in a new
source4 torture test suite ndr.ndr_string.

Signed-off-by: Sean Finney <seanius@seanius.net>
2011-06-01 00:30:40 +02:00
..
atsvc.c source4/torture/ndr: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
backupkey.c source4/torture/ndr: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
dfs.c source4/torture/ndr: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
dfsblob.c torture: adapt to idl evolution 2011-05-17 00:31:09 +02:00
drsblobs.c source4/torture/ndr: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
drsuapi.c source4/torture/ndr: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
epmap.c source4/torture/ndr: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
lsa.c source4/torture/ndr: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
nbt.c source4/torture/ndr: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
ndr.c librpc/ndr: add new LIBNDR_FLAG_STR_RAW8 for ndr_pull_string 2011-06-01 00:30:40 +02:00
ndr.h s4-smbtorture: add functions to do NDR_OUT ndr_pull validation including NDR_IN context. 2010-09-16 19:03:29 +02:00
netlogon.c source4/torture/ndr: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
ntlmssp.c source4/torture/ndr: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
README s4-smbtorture: mention -v switch for hexdump imports into the NDR testsuites. 2010-09-16 14:41:37 +02:00
samr.c source4/torture/ndr: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
spoolss.c source4/torture/ndr: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
string.c librpc/ndr: add new LIBNDR_FLAG_STR_RAW8 for ndr_pull_string 2011-06-01 00:30:40 +02:00
winreg.c source4/torture/ndr: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00

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

to import ndr dumps