Lines 1911-1916
Link Here
|
1911 |
It is necessary to seed the PRNG with RAND_add() on some platforms before\n\ |
1911 |
It is necessary to seed the PRNG with RAND_add() on some platforms before\n\ |
1912 |
using the ssl() function."); |
1912 |
using the ssl() function."); |
1913 |
|
1913 |
|
|
|
1914 |
/* ### Fix build with LibreSSL (does not have RAND_egd) |
1915 |
### PR195513, http://bugs.python.org/issue21356 */ |
1916 |
#ifdef HAVE_RAND_EGD |
1914 |
static PyObject * |
1917 |
static PyObject * |
1915 |
PySSL_RAND_egd(PyObject *self, PyObject *args) |
1918 |
PySSL_RAND_egd(PyObject *self, PyObject *args) |
1916 |
{ |
1919 |
{ |
Lines 1938-1943
Link Here
|
1938 |
Queries the entropy gather daemon (EGD) on the socket named by 'path'.\n\ |
1941 |
Queries the entropy gather daemon (EGD) on the socket named by 'path'.\n\ |
1939 |
Returns number of bytes read. Raises SSLError if connection to EGD\n\ |
1942 |
Returns number of bytes read. Raises SSLError if connection to EGD\n\ |
1940 |
fails or if it does provide enough data to seed PRNG."); |
1943 |
fails or if it does provide enough data to seed PRNG."); |
|
|
1944 |
#endif /* HAVE_RAND_EGD */ |
1945 |
/* ### End PR195513 */ |
1941 |
|
1946 |
|
1942 |
#endif |
1947 |
#endif |
1943 |
|
1948 |
|
Lines 1951-1958
Link Here
|
1951 |
#ifdef HAVE_OPENSSL_RAND |
1956 |
#ifdef HAVE_OPENSSL_RAND |
1952 |
{"RAND_add", PySSL_RAND_add, METH_VARARGS, |
1957 |
{"RAND_add", PySSL_RAND_add, METH_VARARGS, |
1953 |
PySSL_RAND_add_doc}, |
1958 |
PySSL_RAND_add_doc}, |
|
|
1959 |
/* ### Fix build with LibreSSL (does not have RAND_egd) |
1960 |
### PR195513, http://bugs.python.org/issue21356 */ |
1961 |
#ifdef HAVE_RAND_EGD |
1954 |
{"RAND_egd", PySSL_RAND_egd, METH_VARARGS, |
1962 |
{"RAND_egd", PySSL_RAND_egd, METH_VARARGS, |
1955 |
PySSL_RAND_egd_doc}, |
1963 |
PySSL_RAND_egd_doc}, |
|
|
1964 |
#endif /* HAVE_RAND_EGD */ |
1956 |
{"RAND_status", (PyCFunction)PySSL_RAND_status, METH_NOARGS, |
1965 |
{"RAND_status", (PyCFunction)PySSL_RAND_status, METH_NOARGS, |
1957 |
PySSL_RAND_status_doc}, |
1966 |
PySSL_RAND_status_doc}, |
1958 |
#endif |
1967 |
#endif |