Lines 1601-1606
Link Here
|
1601 |
It is necessary to seed the PRNG with RAND_add() on some platforms before\n\ |
1601 |
It is necessary to seed the PRNG with RAND_add() on some platforms before\n\ |
1602 |
using the ssl() function."); |
1602 |
using the ssl() function."); |
1603 |
|
1603 |
|
|
|
1604 |
/* ### Fix build with LibreSSL (does not have RAND_egd) |
1605 |
### PR192511, http://bugs.python.org/issue21356 */ |
1606 |
#ifdef HAVE_RAND_EGD |
1604 |
static PyObject * |
1607 |
static PyObject * |
1605 |
PySSL_RAND_egd(PyObject *self, PyObject *arg) |
1608 |
PySSL_RAND_egd(PyObject *self, PyObject *arg) |
1606 |
{ |
1609 |
{ |
Lines 1626-1631
Link Here
|
1626 |
Queries the entropy gather daemon (EGD) on the socket named by 'path'.\n\ |
1629 |
Queries the entropy gather daemon (EGD) on the socket named by 'path'.\n\ |
1627 |
Returns number of bytes read. Raises SSLError if connection to EGD\n\ |
1630 |
Returns number of bytes read. Raises SSLError if connection to EGD\n\ |
1628 |
fails or if it does not provide enough data to seed PRNG."); |
1631 |
fails or if it does not provide enough data to seed PRNG."); |
|
|
1632 |
#endif /* HAVE_RAND_EGD */ |
1633 |
/* ### End PR192511 */ |
1629 |
|
1634 |
|
1630 |
#endif /* HAVE_OPENSSL_RAND */ |
1635 |
#endif /* HAVE_OPENSSL_RAND */ |
1631 |
|
1636 |
|
Lines 1640-1647
Link Here
|
1640 |
#ifdef HAVE_OPENSSL_RAND |
1645 |
#ifdef HAVE_OPENSSL_RAND |
1641 |
{"RAND_add", PySSL_RAND_add, METH_VARARGS, |
1646 |
{"RAND_add", PySSL_RAND_add, METH_VARARGS, |
1642 |
PySSL_RAND_add_doc}, |
1647 |
PySSL_RAND_add_doc}, |
|
|
1648 |
/* ### Fix build with LibreSSL (does not have RAND_egd) |
1649 |
### PR192511, http://bugs.python.org/issue21356 */ |
1650 |
#ifdef HAVE_RAND_EGD |
1643 |
{"RAND_egd", PySSL_RAND_egd, METH_O, |
1651 |
{"RAND_egd", PySSL_RAND_egd, METH_O, |
1644 |
PySSL_RAND_egd_doc}, |
1652 |
PySSL_RAND_egd_doc}, |
|
|
1653 |
#endif /* HAVE_RAND_EGD */ |
1654 |
/* ### End PR192551 */ |
1645 |
{"RAND_status", (PyCFunction)PySSL_RAND_status, METH_NOARGS, |
1655 |
{"RAND_status", (PyCFunction)PySSL_RAND_status, METH_NOARGS, |
1646 |
PySSL_RAND_status_doc}, |
1656 |
PySSL_RAND_status_doc}, |
1647 |
#endif |
1657 |
#endif |