X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb-python/blobdiff_plain/b6457c8a8723f6b45e6191e52a91ea2155e8ccf1..2a3f4da1c95d71e6045ddf1617754bacddfd46c3:/rand.c diff --git a/rand.c b/rand.c index b662fd5..841a402 100644 --- a/rand.c +++ b/rand.c @@ -938,7 +938,7 @@ static PyTypeObject gclatinrand_pytype_skel = { static PyObject *sslprf_pynew(PyTypeObject *ty, PyObject *arg, PyObject *kw) { char *k, *s; - int ksz, ssz; + Py_ssize_t ksz, ssz; const gchash *hco = &md5, *hci = &sha; PyObject *rc = 0; static const char *const kwlist[] = { "key", "seed", "ohash", "ihash", 0 }; @@ -955,7 +955,7 @@ end: static PyObject *tlsdx_pynew(PyTypeObject *ty, PyObject *arg, PyObject *kw) { char *k, *s; - int ksz, ssz; + Py_ssize_t ksz, ssz; const gcmac *mc = &sha_hmac; PyObject *rc = 0; static const char *const kwlist[] = { "key", "seed", "mac", 0 }; @@ -972,7 +972,7 @@ end: static PyObject *tlsprf_pynew(PyTypeObject *ty, PyObject *arg, PyObject *kw) { char *k, *s; - int ksz, ssz; + Py_ssize_t ksz, ssz; const gcmac *mcl = &md5_hmac, *mcr = &sha_hmac; PyObject *rc = 0; static const char *const kwlist[] = { "key", "seed", "lmac", "rmac", 0 }; @@ -1138,7 +1138,7 @@ static PyTypeObject tlsprf_pytype_skel = { static PyObject *dsarand_pynew(PyTypeObject *ty, PyObject *arg, PyObject *kw) { char *p; - int sz; + Py_ssize_t sz; PyObject *rc = 0; static const char *const kwlist[] = { "seed", 0 };