ssl.PROTOCOL_SSLv3 has been removed in #768611 due to:
http://bugs.python.org/issue22638

Here's a trivial patch (only to the code, not the unit tests)

-------------------------
Description: Replace PROTOCOL_SSLv3 with PROTOCOL_SSLv23
 Author: Federico Ceratto <federico.cera...@gmail.com>
 Forwarded: not-needed
 Last-Update: 2014-11-21

---

--- a/gevent/ssl.py
+++ b/gevent/ssl.py
@@ -382,7 +382,7 @@
                      ciphers=ciphers)


-def get_server_certificate(addr, ssl_version=PROTOCOL_SSLv3, ca_certs=None):
+def get_server_certificate(addr, ssl_version=PROTOCOL_SSLv23, ca_certs=None):
     """Retrieve the certificate from the server at the specified address,
     and return it as a PEM-encoded string.
     If 'ca_certs' is specified, validate the server cert against it.

-------------------------

Thanks,
-- 
Federico Ceratto


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to