[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [flashproxy/master] Force TLSv1.



commit 26d5a47b2d2c6e2c4f9728a473def8a9dc57e093
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Tue Sep 11 11:20:03 2012 -0700

    Force TLSv1.
---
 flashproxy-reg-email |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/flashproxy-reg-email b/flashproxy-reg-email
index f57bc58..c79f03b 100755
--- a/flashproxy-reg-email
+++ b/flashproxy-reg-email
@@ -170,8 +170,8 @@ try:
         code, msg = smtp.docmd("STARTTLS")
         if code != 220:
             raise ValueError("Got code %d after STARTTLS" % code)
-        smtp.sock = ssl.wrap_socket(smtp.sock, cert_reqs=ssl.CERT_REQUIRED,
-            ca_certs=ca_certs_file.name)
+        smtp.sock = ssl.wrap_socket(smtp.sock, ssl_version=ssl.PROTOCOL_TLSv1,
+            cert_reqs=ssl.CERT_REQUIRED, ca_certs=ca_certs_file.name)
         smtp.file = smtp.sock.makefile()
     finally:
         ca_certs_file.close()



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits