1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source4/librpc
Noel Power 5c129351cc s4/librpc: Additionally accept unicode as string param in Py2
With the changes to make samba python code Py2/Py3 compatible there
now are many instances where string content is decoded.
Decoded string variables in Py2 are returned as the unicode type. Many
Py2 c-module functions that take string arguments only check for the
string type. However now it's quite possibe the content formally passed
as a string argument is now passed as unicode after being decoded,
such arguments are rejected and code can fail subtly. This only affects
places where the type is directly checked e.g. via PyStr_Check etc.
arguments that are parsed by ParseTuple* functions generally already
accept both string and unicode (if 's', 'z', 's*' format specifiers
are used)

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
2018-04-30 15:43:19 +02:00
..
gen_ndr waf-idl: put the gen_ndr/README file for source3 back 2010-07-19 22:17:17 +10:00
idl s4-dns: Reload DNS zones from dsdb when zones are modified through RPC or DRS 2014-12-22 05:57:08 +01:00
ndr s4/librpc: GUID should accept string or bytes in python3 2018-03-23 07:28:25 +01:00
rpc s4/librpc: Additionally accept unicode as string param in Py2 2018-04-30 15:43:19 +02:00
scripts
tests tests/ndrdump: Add a test for --hex-input 2017-02-14 13:39:01 +01:00
dcerpc_samr.pc.in build: correct package dependencies 2017-04-18 18:54:13 +02:00
dcerpc.pc.in build: correct package dependencies 2017-04-18 18:54:13 +02:00
wscript_build wscript_build: make sure we link extra-python versions of libraries 2018-04-13 07:27:11 +02:00