|
Line 0
Link Here
|
|
|
1 |
http://bugs.python.org/issue24557 |
| 2 |
assume egd unless OPENSSL_NO_EGD is defined-remove configure check |
| 3 |
|
| 4 |
--- Modules/_ssl.c.orig 2016-06-25 21:52:32 UTC |
| 5 |
+++ Modules/_ssl.c |
| 6 |
@@ -3325,7 +3325,7 @@ Returns 1 if the OpenSSL PRNG has been s |
| 7 |
It is necessary to seed the PRNG with RAND_add() on some platforms before\n\ |
| 8 |
using the ssl() function."); |
| 9 |
|
| 10 |
-#ifdef HAVE_RAND_EGD |
| 11 |
+#ifndef OPENSSL_NO_EGD |
| 12 |
static PyObject * |
| 13 |
PySSL_RAND_egd(PyObject *self, PyObject *args) |
| 14 |
{ |
| 15 |
@@ -3753,7 +3753,7 @@ static PyMethodDef PySSL_methods[] = { |
| 16 |
PySSL_RAND_bytes_doc}, |
| 17 |
{"RAND_pseudo_bytes", PySSL_RAND_pseudo_bytes, METH_VARARGS, |
| 18 |
PySSL_RAND_pseudo_bytes_doc}, |
| 19 |
-#ifdef HAVE_RAND_EGD |
| 20 |
+#ifndef OPENSSL_NO_EGD |
| 21 |
{"RAND_egd", PySSL_RAND_egd, METH_VARARGS, |
| 22 |
PySSL_RAND_egd_doc}, |
| 23 |
#endif |