equal
deleted
inserted
replaced
436 ctx.load_verify_locations(cafile=cafile) |
436 ctx.load_verify_locations(cafile=cafile) |
437 else: |
437 else: |
438 ctx.load_default_certs() |
438 ctx.load_default_certs() |
439 |
439 |
440 return len(ctx.get_ca_certs()) > 0 |
440 return len(ctx.get_ca_certs()) > 0 |
|
441 |
|
442 @check("tls1.2", "TLS 1.2 protocol support") |
|
443 def has_tls1_2(): |
|
444 from mercurial import sslutil |
|
445 return 'tls1.2' in sslutil.supportprotocols |
441 |
446 |
442 @check("windows", "Windows") |
447 @check("windows", "Windows") |
443 def has_windows(): |
448 def has_windows(): |
444 return os.name == 'nt' |
449 return os.name == 'nt' |
445 |
450 |