Skip to content

Commit

Permalink
Merge pull request #42 from nitzmahone/py310_support
Browse files Browse the repository at this point in the history
fixes for Python 3.10
  • Loading branch information
nitzmahone authored Nov 10, 2021
2 parents 8d74c58 + 7e36e52 commit 293be8f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 17 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: pykerberos CI
on:
push:
pull_request:

jobs:
linux:
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- python: 2.7
- python: 3.6
- python: 3.7
- python: 3.8
- python: 3.9
- python: '3.10'
steps:
- name: checkout
uses: actions/checkout@v2

- name: install Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- name: test build/install
run: |
sudo apt-get update -qq
sudo apt-get install libkrb5-dev
python -V
python -m pip install .
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

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 293be8f

Please sign in to comment.