Browse files

Revert "Drop support for SSLv2, it is insecure."

This reverts commit de92a9a.
  • Loading branch information...
1 parent de92a9a commit 84936511d1a41f53b77c888ece8f08d633d1ed53 Bjarni R. Einarsson committed Jan 15, 2013
Showing with 1 addition and 2 deletions.
  1. +0 −1 pagekite/compat.py
  2. +1 −1 pagekite/pk.py
View
1 pagekite/compat.py
@@ -123,7 +123,6 @@ def rsplit(ch, data):
TUNNEL_SOCKET_BLOCKS = False
class SSL(object):
SSLv23_METHOD = 0
- SSLv3_METHOD = 0
TLSv1_METHOD = 0
class Error(Exception): pass
class SysCallError(Exception): pass
View
2 pagekite/pk.py
@@ -1747,7 +1747,7 @@ def Configure(self, argv):
elif opt == '--tls_default': self.tls_default = arg
elif opt == '--tls_endpoint':
name, pemfile = arg.split(':', 1)
- ctx = SSL.Context(SSL.SSLv3_METHOD)
+ ctx = SSL.Context(SSL.SSLv23_METHOD)
ctx.use_privatekey_file(pemfile)
ctx.use_certificate_chain_file(pemfile)
self.tls_endpoints[name] = (pemfile, ctx)

0 comments on commit 8493651

Please sign in to comment.