Show More
@@ -110,6 +110,8 b' class validator(object):' | |||||
110 | self.ui.warn(_("warning: certificate for %s can't be verified " |
|
110 | self.ui.warn(_("warning: certificate for %s can't be verified " | |
111 | "(Python too old)\n") % host) |
|
111 | "(Python too old)\n") % host) | |
112 | return |
|
112 | return | |
|
113 | if not sock.cipher(): # work around http://bugs.python.org/issue13721 | |||
|
114 | raise util.Abort(_('%s ssl connection error') % host) | |||
113 | peercert = sock.getpeercert(True) |
|
115 | peercert = sock.getpeercert(True) | |
114 | peerfingerprint = util.sha1(peercert).hexdigest() |
|
116 | peerfingerprint = util.sha1(peercert).hexdigest() | |
115 | nicefingerprint = ":".join([peerfingerprint[x:x + 2] |
|
117 | nicefingerprint = ":".join([peerfingerprint[x:x + 2] |
General Comments 0
You need to be logged in to leave comments.
Login now