Lines 2559-2564
Link Here
|
2559 |
It is necessary to seed the PRNG with RAND_add() on some platforms before\n\ |
2559 |
It is necessary to seed the PRNG with RAND_add() on some platforms before\n\ |
2560 |
using the ssl() function."); |
2560 |
using the ssl() function."); |
2561 |
|
2561 |
|
|
|
2562 |
/* ### Fix build with LibreSSL (does not have RAND_egd) |
2563 |
### PR195511, http://bugs.python.org/issue21356 */ |
2564 |
#ifdef HAVE_RAND_EGD |
2562 |
static PyObject * |
2565 |
static PyObject * |
2563 |
PySSL_RAND_egd(PyObject *self, PyObject *args) |
2566 |
PySSL_RAND_egd(PyObject *self, PyObject *args) |
2564 |
{ |
2567 |
{ |
Lines 2586-2591
Link Here
|
2586 |
Queries the entropy gather daemon (EGD) on the socket named by 'path'.\n\ |
2589 |
Queries the entropy gather daemon (EGD) on the socket named by 'path'.\n\ |
2587 |
Returns number of bytes read. Raises SSLError if connection to EGD\n\ |
2590 |
Returns number of bytes read. Raises SSLError if connection to EGD\n\ |
2588 |
fails or if it does not provide enough data to seed PRNG."); |
2591 |
fails or if it does not provide enough data to seed PRNG."); |
|
|
2592 |
#endif /* HAVE_RAND_EGD */ |
2593 |
/* ### End PR195511 */ |
2589 |
|
2594 |
|
2590 |
#endif /* HAVE_OPENSSL_RAND */ |
2595 |
#endif /* HAVE_OPENSSL_RAND */ |
2591 |
|
2596 |
|
Lines 2604-2611
Link Here
|
2604 |
PySSL_RAND_bytes_doc}, |
2609 |
PySSL_RAND_bytes_doc}, |
2605 |
{"RAND_pseudo_bytes", PySSL_RAND_pseudo_bytes, METH_VARARGS, |
2610 |
{"RAND_pseudo_bytes", PySSL_RAND_pseudo_bytes, METH_VARARGS, |
2606 |
PySSL_RAND_pseudo_bytes_doc}, |
2611 |
PySSL_RAND_pseudo_bytes_doc}, |
|
|
2612 |
/* ### Fix build with LibreSSL (does not have RAND_egd) |
2613 |
### PR195511, http://bugs.python.org/issue21356 */ |
2614 |
#ifdef HAVE_RAND_EGD |
2607 |
{"RAND_egd", PySSL_RAND_egd, METH_VARARGS, |
2615 |
{"RAND_egd", PySSL_RAND_egd, METH_VARARGS, |
2608 |
PySSL_RAND_egd_doc}, |
2616 |
PySSL_RAND_egd_doc}, |
|
|
2617 |
#endif /* HAVE_RAND_EGD */ |
2618 |
/* ### End PR195511 */ |
2609 |
{"RAND_status", (PyCFunction)PySSL_RAND_status, METH_NOARGS, |
2619 |
{"RAND_status", (PyCFunction)PySSL_RAND_status, METH_NOARGS, |
2610 |
PySSL_RAND_status_doc}, |
2620 |
PySSL_RAND_status_doc}, |
2611 |
#endif |
2621 |
#endif |