Commit 6447ebc9 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Remove the optional integer argument to SSL_write; now it will always send

    the entire string passed to it
parent 5af56f8c
......@@ -2216,14 +2216,11 @@ staticforward PyTypeObject SSL_Type = {
static PyObject *SSL_SSLwrite(SSLObject *self, PyObject *args)
{
char *data;
size_t len = 0;
size_t len;
if (!PyArg_ParseTuple(args, "s#|i:write", &data, &len))
if (!PyArg_ParseTuple(args, "s#:write", &data, &len))
return NULL;
if (!len)
len = strlen(data);
len = SSL_write(self->ssl, data, len);
return PyInt_FromLong((long)len);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment