diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..efbfe19 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -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 . diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5cb5f78..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: python -python: - - "2.7" - - "3.4" - - "3.5" - - "3.6" - - "3.7" - - "3.8" -before_install: - - sudo apt-get update -qq - - sudo apt-get install libkrb5-dev -install: - - pip install . -script: date diff --git a/src/kerberos.c b/src/kerberos.c index 43cf5e0..d4d0a1f 100644 --- a/src/kerberos.c +++ b/src/kerberos.c @@ -14,6 +14,7 @@ * limitations under the License. **/ +#define PY_SSIZE_T_CLEAN #include #include "kerberosbasic.h" @@ -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;