Show More
@@ -171,7 +171,9 b' def wrapsocket(sock, keyfile, certfile, ' | |||
|
171 | 171 | if not sslsocket.cipher(): |
|
172 | 172 | raise error.Abort(_('ssl connection failed')) |
|
173 | 173 | |
|
174 |
sslsocket._hg |
|
|
174 | sslsocket._hgstate = { | |
|
175 | 'caloaded': caloaded, | |
|
176 | } | |
|
175 | 177 | |
|
176 | 178 | return sslsocket |
|
177 | 179 | |
@@ -341,7 +343,7 b' class validator(object):' | |||
|
341 | 343 | (host, nicefingerprint)) |
|
342 | 344 | return |
|
343 | 345 | |
|
344 | if not sock._hgcaloaded: | |
|
346 | if not sock._hgstate['caloaded']: | |
|
345 | 347 | if strict: |
|
346 | 348 | raise error.Abort(_('%s certificate with fingerprint %s not ' |
|
347 | 349 | 'verified') % (host, nicefingerprint), |
General Comments 0
You need to be logged in to leave comments.
Login now