diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-02-03 10:14:49 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-03-01 23:10:40 +0100 |
commit | c91b2921a63659ade55756f09fb65331cf1ca6ca (patch) | |
tree | 46991a64734521aa000849d0ccc898cb9fc4d130 | |
parent | Skip RDS socket tests that hang frequently (diff) | |
download | cpython-c91b2921a63659ade55756f09fb65331cf1ca6ca.tar.gz cpython-c91b2921a63659ade55756f09fb65331cf1ca6ca.tar.bz2 cpython-c91b2921a63659ade55756f09fb65331cf1ca6ca.zip |
ssl: Hard-disable SSLv3 to avoid automagic depsgentoo-3.10.0a6
Bug: https://bugs.gentoo.org/767886
-rw-r--r-- | Modules/_ssl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 96d2796fcfa..d3343ddb6b6 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -77,6 +77,10 @@ static PySocketModule_APIObject PySocketModule; # error "OPENSSL_THREADS is not defined, Python requires thread-safe OpenSSL" #endif +#ifndef OPENSSL_NO_SSL3 +# define OPENSSL_NO_SSL3 1 +#endif + /* SSL error object */ static PyObject *PySSLErrorObject; static PyObject *PySSLCertVerificationErrorObject; |