1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/auth/credentials
Petr Viktorin 40e409bf9e python3: Use "y#" instead of "s#" for binary data in PyArg_ParseTuple
The "s#" format code for PyArg_ParseTupleAndKeywords and Py_BuildValue
converts a char* and size to/from Python str (with utf-8 encoding under
Python 3).
In some cases, we want bytes (str on Python 2, bytes on 3) instead. The
code for this is "y#" in Python 3, but that is not available in 2.

Introduce a PYARG_BYTES_LEN macro that expands to "s#" or "y#", and use
that in:
- credentials.get_ntlm_response (for input and output)
- ndr_unpack argument in PIDL generated code

Signed-off-by: Petr Viktorin <pviktori@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2017-05-19 22:20:15 +02:00
..
tests credentials test: Use samba.tests.subunitrun. 2014-11-22 02:23:10 +01:00
credentials_internal.h auth/credentials: add cli_credentials_set_password_will_be_nt_hash() and the related logic 2016-12-20 01:11:23 +01:00
credentials_krb5.c credentials_krb5: convert to use smb_gss_krb5_import_cred 2017-03-08 18:00:11 +01:00
credentials_krb5.h auth/credentials: also do a shallow copy of the krb5_ccache. 2016-07-22 23:34:20 +02:00
credentials_ntlm.c auth/credentials: add cli_credentials_set_password_will_be_nt_hash() and the related logic 2016-12-20 01:11:23 +01:00
credentials_secrets.c auth/credentials: try to use kerberos with the machine account unless we're in an AD domain 2017-02-24 18:40:14 +01:00
credentials.c auth/credentials: remove const where we always return a talloc string 2017-01-10 13:54:17 +01:00
credentials.h auth/credentials: remove const where we always return a talloc string 2017-01-10 13:54:17 +01:00
pycredentials.c python3: Use "y#" instead of "s#" for binary data in PyArg_ParseTuple 2017-05-19 22:20:15 +02:00
pycredentials.h pycredentials: Remove PyCredentialCacheContainerObject 2016-03-08 01:58:29 +01:00
samba-credentials.pc.in build: correct package dependencies 2017-04-18 18:54:13 +02:00
wscript_build python: wscript_build: Build some modules for Python 3 2017-03-10 07:31:11 +01:00