Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes for Python 3.10 #42

Merged
merged 1 commit into from
Nov 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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