Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

This reverts commit de92a9a.
  • Loading branch information...
commit 84936511d1a41f53b77c888ece8f08d633d1ed53 1 parent de92a9a
Bjarni R. Einarsson authored
Showing with 1 addition and 2 deletions.
  1. +0 −1  pagekite/compat.py
  2. +1 −1  pagekite/pk.py
1  pagekite/compat.py
View
@@ -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
2  pagekite/pk.py
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.