Line 0
Link Here
|
|
|
1 |
--- ./Modules/_ssl.c.orig 2014-06-30 04:05:42.000000000 +0200 |
2 |
+++ ./Modules/_ssl.c 2014-08-07 11:58:48.000000000 +0200 |
3 |
@@ -1604,20 +1604,11 @@ |
4 |
static PyObject * |
5 |
PySSL_RAND_egd(PyObject *self, PyObject *arg) |
6 |
{ |
7 |
- int bytes; |
8 |
- |
9 |
- if (!PyString_Check(arg)) |
10 |
- return PyErr_Format(PyExc_TypeError, |
11 |
- "RAND_egd() expected string, found %s", |
12 |
- Py_TYPE(arg)->tp_name); |
13 |
- bytes = RAND_egd(PyString_AS_STRING(arg)); |
14 |
- if (bytes == -1) { |
15 |
- PyErr_SetString(PySSLErrorObject, |
16 |
- "EGD connection failed or EGD did not return " |
17 |
- "enough data to seed the PRNG"); |
18 |
- return NULL; |
19 |
- } |
20 |
- return PyInt_FromLong(bytes); |
21 |
+ |
22 |
+ PyErr_SetString(PySSLErrorObject, |
23 |
+ "EGD connection failed or EGD did not return " |
24 |
+ "enough data to seed the PRNG"); |
25 |
+ return NULL; |
26 |
} |
27 |
|
28 |
PyDoc_STRVAR(PySSL_RAND_egd_doc, |