diff options
author | 2021-02-03 10:14:49 +0100 | |
---|---|---|
committer | 2024-09-07 08:33:46 +0200 | |
commit | 1c7c3c731eab68954a8f3df95c12e657cb055f73 (patch) | |
tree | 67af85ba0dac7b6fb27b9b3f7cc3fc949abcc336 | |
parent | Skip RDS socket tests that hang frequently (diff) | |
download | cpython-1c7c3c731eab68954a8f3df95c12e657cb055f73.tar.gz cpython-1c7c3c731eab68954a8f3df95c12e657cb055f73.tar.bz2 cpython-1c7c3c731eab68954a8f3df95c12e657cb055f73.zip |
ssl: Hard-disable SSLv3 to avoid automagic deps
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 5e0be34d6f3..856e9e13433 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -76,6 +76,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; |