Skip to content

Commit

Permalink
fixes for Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
nitzmahone committed Nov 9, 2021
1 parent 8d74c58 commit 87a8b84
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
language: python
dist: focal
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
before_install:
- sudo apt-get update -qq
- sudo apt-get install libkrb5-dev
Expand Down
7 changes: 4 additions & 3 deletions src/kerberos.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
**/

#define PY_SSIZE_T_CLEAN
#include <Python.h>

#include "kerberosbasic.h"
Expand Down Expand Up @@ -196,9 +197,9 @@ static PyObject *channelBindings(PyObject *self, PyObject *args, PyObject* keywd
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;
Expand Down

0 comments on commit 87a8b84

Please sign in to comment.