From 9a7f14354e30c3f66135f07ba721c232e79f3740 Mon Sep 17 00:00:00 2001 From: nash1111 Date: Sat, 10 Jan 2026 14:52:50 +0900 Subject: [PATCH] crypto: correct checkHostName docs about wildcard matching --- lib/std/crypto/Certificate.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/crypto/Certificate.zig b/lib/std/crypto/Certificate.zig index 761cf49ade60687861db1e39e12080ec62e0bc00..c821af383ea5f409d23c6c1db56ef7bc9eab5fac 100644 --- a/lib/std/crypto/Certificate.zig +++ b/lib/std/crypto/Certificate.zig @@ -341,8 +341,8 @@ pub const Parsed = struct { // the certificate (e.g., more than one DNSName name, a match in any one // of the set is considered acceptable.) Names may contain the wildcard // character * which is considered to match any single domain name - // component or component fragment. E.g., *.a.com matches foo.a.com but - // not bar.foo.a.com. f*.com matches foo.com but not bar.com. + // component. E.g., *.a.com matches foo.a.com but not bar.foo.a.com. + // Partial wildcards like f*.com are not supported. fn checkHostName(host_name: []const u8, dns_name: []const u8) bool { // Empty strings should not match if (host_name.len == 0 or dns_name.len == 0) return false; -- 2.54.0