Line 0
Link Here
|
|
|
1 |
http://bugs.python.org/issue24557 |
2 |
https://hg.python.org/cpython/rev/fe168c2b5e95 |
3 |
|
4 |
assume egd unless OPENSSL_NO_EGD is defined-remove configure check |
5 |
|
6 |
--- Modules/_ssl.c.orig 2015-12-07 01:39:10 UTC |
7 |
+++ Modules/_ssl.c |
8 |
@@ -3916,7 +3916,7 @@ _ssl_RAND_status_impl(PyModuleDef *modul |
9 |
return PyLong_FromLong(RAND_status()); |
10 |
} |
11 |
|
12 |
-#ifdef HAVE_RAND_EGD |
13 |
+#ifndef OPENSSL_NO_EGD |
14 |
/*[clinic input] |
15 |
_ssl.RAND_egd |
16 |
path: object(converter="PyUnicode_FSConverter") |
17 |
@@ -3942,7 +3942,7 @@ _ssl_RAND_egd_impl(PyModuleDef *module, |
18 |
} |
19 |
return PyLong_FromLong(bytes); |
20 |
} |
21 |
-#endif /* HAVE_RAND_EGD */ |
22 |
+#endif /* OPENSSL_NO_EGD */ |
23 |
|
24 |
|
25 |
|
26 |
--- Modules/clinic/_ssl.c.h.orig 2015-12-07 01:39:10 UTC |
27 |
+++ Modules/clinic/_ssl.c.h |
28 |
@@ -893,7 +893,7 @@ _ssl_RAND_status(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) |
29 |
return _ssl_RAND_status_impl(module); |
30 |
} |
31 |
|
32 |
-#if defined(HAVE_RAND_EGD) |
33 |
+#if !defined(OPENSSL_NO_EGD) |
34 |
|
35 |
PyDoc_STRVAR(_ssl_RAND_egd__doc__, |
36 |
"RAND_egd($module, path, /)\n" |
37 |
@@ -924,7 +924,7 @@ _ssl_RAND_egd(PyModuleDef *module, PyObject *arg) |
38 |
return return_value; |
39 |
} |
40 |
|
41 |
-#endif /* defined(HAVE_RAND_EGD) */ |
42 |
+#endif /* !defined(OPENSSL_NO_EGD) */ |
43 |
|
44 |
PyDoc_STRVAR(_ssl_get_default_verify_paths__doc__, |
45 |
"get_default_verify_paths($module, /)\n" |
46 |
@@ -1102,4 +1102,4 @@ _ssl_enum_crls(PyModuleDef *module, PyObject *args, PyObject *kwargs) |
47 |
#ifndef _SSL_ENUM_CRLS_METHODDEF |
48 |
#define _SSL_ENUM_CRLS_METHODDEF |
49 |
#endif /* !defined(_SSL_ENUM_CRLS_METHODDEF) */ |
50 |
-/*[clinic end generated code: output=a14999cb565a69a2 input=a9049054013a1b77]*/ |
51 |
+/*[clinic end generated code: output=abe795f14cb63b6a input=a9049054013a1b77]*/ |