##// END OF EJS Templates
sslutil: make keyfile and certfile arguments consistent between 2.6+ and 2.5-
Augie Fackler -
r19808:3b82d412 default
parent child Browse files
Show More
@@ -34,7 +34,7 b' except ImportError:'
34 34
35 35 import socket, httplib
36 36
37 def ssl_wrap_socket(sock, key_file, cert_file, ssl_version=PROTOCOL_TLSv1,
37 def ssl_wrap_socket(sock, keyfile, certfile, ssl_version=PROTOCOL_TLSv1,
38 38 cert_reqs=CERT_REQUIRED, ca_certs=None):
39 39 if not util.safehasattr(socket, 'ssl'):
40 40 raise util.Abort(_('Python SSL support not found'))
@@ -42,7 +42,7 b' except ImportError:'
42 42 raise util.Abort(_(
43 43 'certificate checking requires Python 2.6'))
44 44
45 ssl = socket.ssl(sock, key_file, cert_file)
45 ssl = socket.ssl(sock, keyfile, certfile)
46 46 return httplib.FakeSocket(sock, ssl)
47 47
48 48 def _verifycert(cert, hostname):
General Comments 0
You need to be logged in to leave comments. Login now