From 8d0bd4143c66131728dc6c321af2656752299199 Mon Sep 17 00:00:00 2001 From: topical Date: Sun, 19 Jan 2025 16:19:01 +0000 Subject: security/py-kerberos: Make compatible with python3.11 PR: 280567 --- security/py-kerberos/files/patch-src_kerberos.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 security/py-kerberos/files/patch-src_kerberos.c (limited to 'security/py-kerberos/files/patch-src_kerberos.c') diff --git a/security/py-kerberos/files/patch-src_kerberos.c b/security/py-kerberos/files/patch-src_kerberos.c new file mode 100644 index 000000000000..cd82fc5a3ccc --- /dev/null +++ b/security/py-kerberos/files/patch-src_kerberos.c @@ -0,0 +1,23 @@ +--- src/kerberos.c.orig 2021-01-09 04:30:38 UTC ++++ src/kerberos.c +@@ -14,6 +14,7 @@ + * limitations under the License. + **/ + ++#define PY_SSIZE_T_CLEAN + #include + + #include "kerberosbasic.h" +@@ -244,9 +245,9 @@ static PyObject *channelBindings(PyObject *self, PyObj + char *initiator_address = NULL; + char *acceptor_address = NULL; + char *application_data = NULL; +- int initiator_length = 0; +- int acceptor_length = 0; +- int application_length = 0; ++ Py_ssize_t initiator_length = 0; ++ Py_ssize_t acceptor_length = 0; ++ Py_ssize_t application_length = 0; + + PyObject *pychan_bindings = NULL; + struct gss_channel_bindings_struct *input_chan_bindings; -- cgit v1.2.3