|
@@ -17,7 +17,7 @@ func Test_domainsMatch(t *testing.T) {
|
17
|
17
|
{"matching subject missing sans", args{[]string{"example.com", "example.org"}, []string{"example.com"}}, false},
|
18
|
18
|
{"matching subject extra sans", args{[]string{"example.com"}, []string{"example.com", "example.org"}}, false},
|
19
|
19
|
{"matching subject different sans", args{[]string{"example.com", "example.org"}, []string{"example.com", "example.net"}}, false},
|
20
|
|
- {"mismatched subject and san", args{[]string{"example.org", "example.com"}, []string{"example.com", "example.org"}}, false},
|
|
20
|
+ {"mismatched subject and san", args{[]string{"example.org", "example.com"}, []string{"example.com", "example.org"}}, true},
|
21
|
21
|
{"reordered sans", args{[]string{"example.org", "example.com", "example.net"}, []string{"example.org", "example.net", "example.com"}}, true},
|
22
|
22
|
}
|
23
|
23
|
for _, tt := range tests {
|