| ... | ... | @@ -341,8 +341,8 @@ pub const Parsed = struct { |
| 341 | 341 | // the certificate (e.g., more than one DNSName name, a match in any one |
| 342 | 342 | // of the set is considered acceptable.) Names may contain the wildcard |
| 343 | 343 | // character * which is considered to match any single domain name |
| 344 | | // component or component fragment. E.g., *.a.com matches foo.a.com but |
| 345 | | // not bar.foo.a.com. f*.com matches foo.com but not bar.com. |
| 344 | // component. E.g., *.a.com matches foo.a.com but not bar.foo.a.com. |
| 345 | // Partial wildcards like f*.com are not supported. |
| 346 | 346 | fn checkHostName(host_name: []const u8, dns_name: []const u8) bool { |
| 347 | 347 | // Empty strings should not match |
| 348 | 348 | if (host_name.len == 0 or dns_name.len == 0) return false; |