mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-09 08:00:52 +02:00
44a22af323
MatchNameConstraint() compared wildcard DNS SANs literally, so *.example.com was not rejected by an excluded subtree covering foo.example.com. Route WOLFSSL_GEN_DNS through wolfssl_local_MatchDnsNameConstraint(), passing the subtree direction: permitted subtrees require every wildcard expansion to stay inside the subtree, excluded subtrees reject when any expansion can fall inside. This matches what ConfirmNameConstraints() already does.