Lines 3301-3306
Link Here
|
3301 |
It is necessary to seed the PRNG with RAND_add() on some platforms before\n\ |
3301 |
It is necessary to seed the PRNG with RAND_add() on some platforms before\n\ |
3302 |
using the ssl() function."); |
3302 |
using the ssl() function."); |
3303 |
|
3303 |
|
|
|
3304 |
/* ### Fix build with LibreSSL (does not have RAND_egd) |
3305 |
### PR192511, http://bugs.python.org/issue21356 */ |
3306 |
#ifdef HAVE_RAND_EGD |
3304 |
static PyObject * |
3307 |
static PyObject * |
3305 |
PySSL_RAND_egd(PyObject *self, PyObject *arg) |
3308 |
PySSL_RAND_egd(PyObject *self, PyObject *arg) |
3306 |
{ |
3309 |
{ |
Lines 3326-3331
Link Here
|
3326 |
Queries the entropy gather daemon (EGD) on the socket named by 'path'.\n\ |
3329 |
Queries the entropy gather daemon (EGD) on the socket named by 'path'.\n\ |
3327 |
Returns number of bytes read. Raises SSLError if connection to EGD\n\ |
3330 |
Returns number of bytes read. Raises SSLError if connection to EGD\n\ |
3328 |
fails or if it does not provide enough data to seed PRNG."); |
3331 |
fails or if it does not provide enough data to seed PRNG."); |
|
|
3332 |
#endif /* HAVE_RAND_EGD */ |
3333 |
/* ### End PR192511 */ |
3329 |
|
3334 |
|
3330 |
#endif /* HAVE_OPENSSL_RAND */ |
3335 |
#endif /* HAVE_OPENSSL_RAND */ |
3331 |
|
3336 |
|
Lines 3720-3727
Link Here
|
3720 |
#ifdef HAVE_OPENSSL_RAND |
3725 |
#ifdef HAVE_OPENSSL_RAND |
3721 |
{"RAND_add", PySSL_RAND_add, METH_VARARGS, |
3726 |
{"RAND_add", PySSL_RAND_add, METH_VARARGS, |
3722 |
PySSL_RAND_add_doc}, |
3727 |
PySSL_RAND_add_doc}, |
|
|
3728 |
/* ### Fix build with LibreSSL (does not have RAND_egd) |
3729 |
### PR192511, http://bugs.python.org/issue21356 */ |
3730 |
#ifdef HAVE_RAND_EGD |
3723 |
{"RAND_egd", PySSL_RAND_egd, METH_VARARGS, |
3731 |
{"RAND_egd", PySSL_RAND_egd, METH_VARARGS, |
3724 |
PySSL_RAND_egd_doc}, |
3732 |
PySSL_RAND_egd_doc}, |
|
|
3733 |
#endif /* HAVE_RAND_EGD */ |
3734 |
/* ### End PR192551 */ |
3725 |
{"RAND_status", (PyCFunction)PySSL_RAND_status, METH_NOARGS, |
3735 |
{"RAND_status", (PyCFunction)PySSL_RAND_status, METH_NOARGS, |
3726 |
PySSL_RAND_status_doc}, |
3736 |
PySSL_RAND_status_doc}, |
3727 |
#endif |
3737 |
#endif |