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

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: add test of ".." constraint 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
« no previous file with comments | « net/data/name_constraints_unittest/dnsname-permitted_two_dot.pem ('k') | net/net.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3096db8a1f98baf3c769dce9adcf89087d3f0440 100755
--- a/net/data/name_constraints_unittest/generate_name_constraints.py
+++ b/net/data/name_constraints_unittest/generate_name_constraints.py
@@ -211,6 +211,14 @@ 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")
+
+ dnsname_constraints5 = NameConstraintsGenerator()
+ dnsname_constraints5.add_permitted(dns_name(".."))
+ generate(dnsname_constraints5, "dnsname-permitted_two_dot.pem")
+
c = NameConstraintsGenerator()
c.add_excluded(dns_name("excluded.permitted.example.com"))
generate(c, "dnsname-excluded.pem")
« no previous file with comments | « net/data/name_constraints_unittest/dnsname-permitted_two_dot.pem ('k') | net/net.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698