aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/data/hostnames.vec
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-03-29 12:41:57 -0400
committerJack Lloyd <[email protected]>2018-03-31 09:56:44 -0400
commiteaac9648a401f62fa96f7cda0587a084ee6ac80b (patch)
treea142442fd7e9a1a6daf9dd0604f8ff48465d2b61 /src/tests/data/hostnames.vec
parentdfc6b6ad819395828426c172b8ba2f5d53dda508 (diff)
Fix bugs in wildcard matching
We would incorrectly accept invalid matches for example b*.example.net could match foobar.example.net Introduced in 289cc25709b08
Diffstat (limited to 'src/tests/data/hostnames.vec')
-rw-r--r--src/tests/data/hostnames.vec70
1 files changed, 70 insertions, 0 deletions
diff --git a/src/tests/data/hostnames.vec b/src/tests/data/hostnames.vec
index 91296d2d8..56433af7b 100644
--- a/src/tests/data/hostnames.vec
+++ b/src/tests/data/hostnames.vec
@@ -40,7 +40,68 @@ Hostname = test.www.example.com
Issued = *www.example.com
Hostname = www.example.com
+Issued = fluf*z.example.net
+Hostname = flufbaz.example.net
+
+Issued = example.com
+Hostname = EXAMPLE.com
+
+Issued = example.com
+Hostname = EXAMPLE.COM
+
+Issued = *.example.COM
+Hostname = a.EXAMPLE.com
+
+Issued = b*z.example.net
+Hostname = bz.example.net
+
[Invalid]
+Issued =
+Hostname = empty.com
+
+Issued = empty.com
+Hostname =
+
+Issued =
+Hostname =
+
+Issued = *
+Hostname = *
+
+Issued = *
+Hostname = a
+
+Issued = *.com
+Hostname = a.com
+
+Issued = *.com
+Hostname = x.a.com
+
+# We reject hostnames with ..
+Issued = a*..com
+Hostname = aninvalidhostname..com
+
+Issued = f.*.com
+Hostname = f.a.com
+
+Issued = ample.com
+Hostname = example.com
+
+Issued = example.com
+Hostname = ample.com
+
+Issued = b*z.example.net
+Hostname = foobaz.example.net
+
+Issued = b*z.example.net
+Hostname = z.example.net
+
+Issued = flufb*z.example.net
+Hostname = foobaz.example.net
+
+Issued = b*z.example.net
+Hostname = baz.example.com
+
Issued = example.com
Hostname = www.example.com
@@ -50,6 +111,9 @@ Hostname = example.com
Issued = bar.*.example.net
Hostname = bar.foo.example.net
+Issued = bar.*.example.net
+Hostname = bar..example.net
+
Issued = *.example.com
Hostname = bar.foo.example.com
@@ -59,6 +123,12 @@ Hostname = example.com
Issued = foo*foo.example.com
Hostname = foo.example.com
+Issued = foo.exa*ple.com
+Hostname = foo.example.com
+
+Issued = exa*ple.com
+Hostname = example.com
+
Issued = **.example.com
Hostname = foo.example.com