|
Lines 3339-3344
Link Here
|
| 3339 |
It is necessary to seed the PRNG with RAND_add() on some platforms before\n\ |
3339 |
It is necessary to seed the PRNG with RAND_add() on some platforms before\n\ |
| 3340 |
using the ssl() function."); |
3340 |
using the ssl() function."); |
| 3341 |
|
3341 |
|
|
|
3342 |
/* ### Fix build with LibreSSL (does not have RAND_egd) |
| 3343 |
### PR195508, http://bugs.python.org/issue21356 */ |
| 3344 |
#ifdef HAVE_RAND_EGD |
| 3342 |
static PyObject * |
3345 |
static PyObject * |
| 3343 |
PySSL_RAND_egd(PyObject *self, PyObject *args) |
3346 |
PySSL_RAND_egd(PyObject *self, PyObject *args) |
| 3344 |
{ |
3347 |
{ |
|
Lines 3366-3371
Link Here
|
| 3366 |
Queries the entropy gather daemon (EGD) on the socket named by 'path'.\n\ |
3369 |
Queries the entropy gather daemon (EGD) on the socket named by 'path'.\n\ |
| 3367 |
Returns number of bytes read. Raises SSLError if connection to EGD\n\ |
3370 |
Returns number of bytes read. Raises SSLError if connection to EGD\n\ |
| 3368 |
fails or if it does not provide enough data to seed PRNG."); |
3371 |
fails or if it does not provide enough data to seed PRNG."); |
|
|
3372 |
#endif /* HAVE_RAND_EGD */ |
| 3373 |
/* ### End PR195508 */ |
| 3369 |
|
3374 |
|
| 3370 |
#endif /* HAVE_OPENSSL_RAND */ |
3375 |
#endif /* HAVE_OPENSSL_RAND */ |
| 3371 |
|
3376 |
|
|
Lines 3761-3768
Link Here
|
| 3761 |
PySSL_RAND_bytes_doc}, |
3766 |
PySSL_RAND_bytes_doc}, |
| 3762 |
{"RAND_pseudo_bytes", PySSL_RAND_pseudo_bytes, METH_VARARGS, |
3767 |
{"RAND_pseudo_bytes", PySSL_RAND_pseudo_bytes, METH_VARARGS, |
| 3763 |
PySSL_RAND_pseudo_bytes_doc}, |
3768 |
PySSL_RAND_pseudo_bytes_doc}, |
|
|
3769 |
/* ### Fix build with LibreSSL (does not have RAND_egd) |
| 3770 |
### PR195508, http://bugs.python.org/issue21356 */ |
| 3771 |
#ifdef HAVE_RAND_EGD |
| 3764 |
{"RAND_egd", PySSL_RAND_egd, METH_VARARGS, |
3772 |
{"RAND_egd", PySSL_RAND_egd, METH_VARARGS, |
| 3765 |
PySSL_RAND_egd_doc}, |
3773 |
PySSL_RAND_egd_doc}, |
|
|
3774 |
#endif /* HAVE_RAND_EGD */ |
| 3775 |
/* ### End PR195508 */ |
| 3766 |
{"RAND_status", (PyCFunction)PySSL_RAND_status, METH_NOARGS, |
3776 |
{"RAND_status", (PyCFunction)PySSL_RAND_status, METH_NOARGS, |
| 3767 |
PySSL_RAND_status_doc}, |
3777 |
PySSL_RAND_status_doc}, |
| 3768 |
#endif |
3778 |
#endif |