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