cipher_protocol = SSL_CIPHER_get_version(cipher);
cipher_id = SSL_CIPHER_get_id(cipher);
SSL_CIPHER_description(cipher, buf, sizeof(buf) - 1);
- len = strlen(buf);
+ len = (int)strlen(buf);
if (len > 1 && buf[len-1] == '\n')
buf[len-1] = '\0';
strength_bits = SSL_CIPHER_get_bits(cipher, &alg_bits);
static PyObject *
memory_bio_get_pending(PySSLMemoryBIO *self, void *c)
{
- return PyLong_FromLong(BIO_ctrl_pending(self->bio));
+ return PyLong_FromSize_t(BIO_ctrl_pending(self->bio));
}
PyDoc_STRVAR(PySSL_memory_bio_pending_doc,
int avail, nbytes;
PyObject *result;
- avail = BIO_ctrl_pending(self->bio);
+ avail = (int)BIO_ctrl_pending(self->bio);
if ((len < 0) || (len > avail))
len = avail;