mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 07:12:54 -04:00
Merge branch 'misc' of ssh://github.com/EFForg/starttls-everywhere into misc
This commit is contained in:
commit
a6700e3172
1 changed files with 9 additions and 2 deletions
|
|
@ -15,8 +15,15 @@ from collections import defaultdict
|
|||
|
||||
csvreader = csv.reader(codecs.open(sys.argv[1], "rU", "utf-8"), delimiter=',', quotechar='"')
|
||||
d = defaultdict(set)
|
||||
for (address_suffix, hostname_suffix, direction, region, fraction_encrypted) in csvreader:
|
||||
# Google's report doesn't include gmail.com because it's local delivery, but we
|
||||
# know they support STARTTLS, so manually include them.
|
||||
d["gmail.com"] = set([1])
|
||||
for (address_suffix, hostname_suffix, direction, region, region_name, fraction_encrypted) in csvreader:
|
||||
if direction == "outbound":
|
||||
# Some domains exist in many TLDs and are summarized as, e.g. yahoo.{...}.
|
||||
# We're tryingto get a solid list of the relevant TLDs, but in the meantime
|
||||
# just use .com.
|
||||
address_suffix = address_suffix.replace("{...}", "com")
|
||||
try:
|
||||
d[address_suffix].add(float(fraction_encrypted))
|
||||
except ValueError:
|
||||
|
|
@ -24,4 +31,4 @@ for (address_suffix, hostname_suffix, direction, region, fraction_encrypted) in
|
|||
|
||||
for address_suffix, fraction_encrypted in d.iteritems():
|
||||
if min(fraction_encrypted) >= 0.99:
|
||||
print min(fraction_encrypted), address_suffix
|
||||
print address_suffix
|
||||
|
|
|
|||
Loading…
Reference in a new issue