diff options
author | Eric Berquist | 2016-03-19 20:23:37 -0400 |
---|---|---|
committer | Eric Berquist | 2016-03-19 20:23:37 -0400 |
commit | 9cb559acc1982dd073f6bd7844878aee169b811b (patch) | |
tree | 4448a25fa7fbcf159be482ebc893aed365974ebf /python-3.3-ssl-nosslv3.patch | |
parent | d5d1034068cf36ac701f5aaf17fdd00e9fd8a974 (diff) | |
download | aur-9cb559acc1982dd073f6bd7844878aee169b811b.tar.gz |
Add patch to remove SSLv3.
Diffstat (limited to 'python-3.3-ssl-nosslv3.patch')
-rw-r--r-- | python-3.3-ssl-nosslv3.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/python-3.3-ssl-nosslv3.patch b/python-3.3-ssl-nosslv3.patch new file mode 100644 index 000000000000..90b38b96907a --- /dev/null +++ b/python-3.3-ssl-nosslv3.patch @@ -0,0 +1,15 @@ +diff --git a/Modules/_ssl.c b/Modules/_ssl.c +index 499e8ba..00a47d7 100644 +--- a/Modules/_ssl.c ++++ b/Modules/_ssl.c +@@ -1746,8 +1746,10 @@ context_new(PyTypeObject *type, PyObject *args, PyObject *kwds) + PySSL_BEGIN_ALLOW_THREADS + if (proto_version == PY_SSL_VERSION_TLS1) + ctx = SSL_CTX_new(TLSv1_method()); ++#ifndef OPENSSL_NO_SSL3 + else if (proto_version == PY_SSL_VERSION_SSL3) + ctx = SSL_CTX_new(SSLv3_method()); ++#endif + #ifndef OPENSSL_NO_SSL2 + else if (proto_version == PY_SSL_VERSION_SSL2) + ctx = SSL_CTX_new(SSLv2_method()); |