mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-08 07:40:48 +02:00
4b3bb49b27
RFC 5280 4.2.1.10 defines URI name constraints in terms of a host that is a fully qualified domain name; RFC 3986 IP-literal ([...]) and IPv4address hosts are not DNS reg-names and cannot be meaningfully matched against a DNS-style constraint base. - Classify the host extracted by GetUriHost (IP-literal, IPv4address, reg-name) and validate that a reg-name has no empty labels. - wolfssl_local_MatchUriNameConstraint() no longer matches URIs whose host is an IP address. - ConfirmNameConstraints() fails closed: when URI constraints are present, a URI SAN without a DNS host is rejected. A plain non-match would otherwise let such names pass excluded-only constraints.