mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
08abd1f5e8
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> |
||
---|---|---|
.. | ||
atsvc.c | ||
backupkey.c | ||
dfs.c | ||
dfsblob.c | ||
drsblobs.c | ||
drsuapi.c | ||
epmap.c | ||
lsa.c | ||
nbt.c | ||
ndr.c | ||
ndr.h | ||
netlogon.c | ||
ntlmssp.c | ||
README | ||
samr.c | ||
spoolss.c | ||
string.c | ||
winreg.c |
use hexdump -v -e '12/1 "0x%02x, " "\n"' infile|outfile to import ndr dumps