Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2194)

Unified Diff: net/data/name_constraints_unittest/generate_name_constraints.py

Issue 2521813002: PKI library: dNSName constraints starting with dot should match subdomains. (Closed)
Patch Set: update gypi Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/data/name_constraints_unittest/generate_name_constraints.py
diff --git a/net/data/name_constraints_unittest/generate_name_constraints.py b/net/data/name_constraints_unittest/generate_name_constraints.py
index cdf54940f3cd84d11767ba136fa6c230e8bc5045..60ac52c9283a6fe75e429d6042329f2af0fd0d5f 100755
--- a/net/data/name_constraints_unittest/generate_name_constraints.py
+++ b/net/data/name_constraints_unittest/generate_name_constraints.py
@@ -211,6 +211,10 @@ def main():
dnsname_constraints3.add_permitted(dns_name(".bar.com"))
generate(dnsname_constraints3, "dnsname-permitted_with_leading_dot.pem")
+ dnsname_constraints4 = NameConstraintsGenerator()
+ dnsname_constraints4.add_excluded(dns_name(".bar.com"))
+ generate(dnsname_constraints4, "dnsname-excluded_with_leading_dot.pem")
+
c = NameConstraintsGenerator()
c.add_excluded(dns_name("excluded.permitted.example.com"))
generate(c, "dnsname-excluded.pem")

Powered by Google App Engine
This is Rietveld 408576698