diff options
author | Christian Heimes <christian@python.org> | 2021-04-17 13:49:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-17 13:49:50 (GMT) |
commit | b8d0fa035d74ae6ae00794c9af636b427c5dc650 (patch) | |
tree | 4d2eb46657607777fd5854247ee2c561492cb750 /Modules/_ssl.c | |
parent | ea39f82b97e0625334af560ef9876684d8e5abeb (diff) | |
download | cpython-b8d0fa035d74ae6ae00794c9af636b427c5dc650.zip cpython-b8d0fa035d74ae6ae00794c9af636b427c5dc650.tar.gz cpython-b8d0fa035d74ae6ae00794c9af636b427c5dc650.tar.bz2 |
bpo-43669: Remove OpenSSL 0.9 to 1.1.0 specific documentation (GH-25453)
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r-- | Modules/_ssl.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index f441a16..92aabcb 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -4971,38 +4971,6 @@ _ssl_RAND_status_impl(PyObject *module) return PyLong_FromLong(RAND_status()); } -#ifndef OPENSSL_NO_EGD -/* LCOV_EXCL_START */ -/*[clinic input] -_ssl.RAND_egd - path: object(converter="PyUnicode_FSConverter") - / - -Queries the entropy gather daemon (EGD) on the socket named by 'path'. - -Returns number of bytes read. Raises SSLError if connection to EGD -fails or if it does not provide enough data to seed PRNG. -[clinic start generated code]*/ - -static PyObject * -_ssl_RAND_egd_impl(PyObject *module, PyObject *path) -/*[clinic end generated code: output=02a67c7c367f52fa input=1aeb7eb948312195]*/ -{ - int bytes = RAND_egd(PyBytes_AsString(path)); - Py_DECREF(path); - if (bytes == -1) { - PyErr_SetString(PySSLErrorObject, - "EGD connection failed or EGD did not return " - "enough data to seed the PRNG"); - return NULL; - } - return PyLong_FromLong(bytes); -} -/* LCOV_EXCL_STOP */ -#endif /* OPENSSL_NO_EGD */ - - - /*[clinic input] _ssl.get_default_verify_paths @@ -5445,7 +5413,6 @@ static PyMethodDef PySSL_methods[] = { _SSL_RAND_ADD_METHODDEF _SSL_RAND_BYTES_METHODDEF _SSL_RAND_PSEUDO_BYTES_METHODDEF - _SSL_RAND_EGD_METHODDEF _SSL_RAND_STATUS_METHODDEF _SSL_GET_DEFAULT_VERIFY_PATHS_METHODDEF _SSL_ENUM_CERTIFICATES_METHODDEF |