summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-07-06 23:55:15 -0700
committerBenjamin Peterson <benjamin@python.org>2016-07-06 23:55:15 -0700
commitc371fcb5c4a8938064ec5d2b8e618ccc1c351f16 (patch)
treecc30e763684e3f53e95969efca7cd132c44ba841 /Modules
parentc76dd7f800fc828b578ffba07d5c04443bcd0f40 (diff)
downloadcpython-c371fcb5c4a8938064ec5d2b8e618ccc1c351f16.tar.gz
assume egd unless OPENSSL_NO_EGD is defined?remove configure check (closes #24557)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ssl.c4
-rw-r--r--Modules/clinic/_ssl.c.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 1117b5561c..ddf8e45f50 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -3938,7 +3938,7 @@ _ssl_RAND_status_impl(PyModuleDef *module)
return PyLong_FromLong(RAND_status());
}
-#ifdef HAVE_RAND_EGD
+#ifndef OPENSSL_NO_EGD
/*[clinic input]
_ssl.RAND_egd
path: object(converter="PyUnicode_FSConverter")
@@ -3964,7 +3964,7 @@ _ssl_RAND_egd_impl(PyModuleDef *module, PyObject *path)
}
return PyLong_FromLong(bytes);
}
-#endif /* HAVE_RAND_EGD */
+#endif /* OPENSSL_NO_EGD */
diff --git a/Modules/clinic/_ssl.c.h b/Modules/clinic/_ssl.c.h
index 4dbc5d0010..9cbcc28955 100644
--- a/Modules/clinic/_ssl.c.h
+++ b/Modules/clinic/_ssl.c.h
@@ -893,7 +893,7 @@ _ssl_RAND_status(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
return _ssl_RAND_status_impl(module);
}
-#if defined(HAVE_RAND_EGD)
+#if !defined(OPENSSL_NO_EGD)
PyDoc_STRVAR(_ssl_RAND_egd__doc__,
"RAND_egd($module, path, /)\n"
@@ -924,7 +924,7 @@ exit:
return return_value;
}
-#endif /* defined(HAVE_RAND_EGD) */
+#endif /* !defined(OPENSSL_NO_EGD) */
PyDoc_STRVAR(_ssl_get_default_verify_paths__doc__,
"get_default_verify_paths($module, /)\n"
@@ -1102,4 +1102,4 @@ exit:
#ifndef _SSL_ENUM_CRLS_METHODDEF
#define _SSL_ENUM_CRLS_METHODDEF
#endif /* !defined(_SSL_ENUM_CRLS_METHODDEF) */
-/*[clinic end generated code: output=a14999cb565a69a2 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=abe795f14cb63b6a input=a9049054013a1b77]*/