X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/f062eeb647668edb376f6ddcce1332113c8825cb..9e947555194b0e435f39e6882e36e5b3639e3203:/rand.c diff --git a/rand.c b/rand.c index 37ab5e4..926eade 100644 --- a/rand.c +++ b/rand.c @@ -940,7 +940,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 }; @@ -957,7 +957,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 }; @@ -974,7 +974,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 }; @@ -1140,7 +1140,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 };