[PATCH] hostcheck: fix host name wildcard checking
authorDaniel Stenberg <daniel@haxx.se>
Mon, 24 Apr 2023 19:07:02 +0000 (21:07 +0200)
committerCarlos Henrique Lima Melara <charlesmelara@riseup.net>
Sun, 23 Jul 2023 21:43:52 +0000 (22:43 +0100)
commit5d224088fc697bb2d43401d8b3faff706485e064
tree4f8ed60af969603932d547c9fd4e4bc85a67c127
parent4a478c6ebcd042edd9ef65f996a056c06a881a95
[PATCH] hostcheck: fix host name wildcard checking

The leftmost "label" of the host name can now only match against single
'*'. Like the browsers have worked for a long time.

- extended unit test 1397 for this
- move some SOURCE variables from unit/Makefile.am to unit/Makefile.inc

Reported-by: Hiroki Kurosawa
Closes #11018

Backported to Debian by Samuel Henrique <samueloph@debian.org>

Gbp-Pq: Name CVE-2023-28321.patch
lib/vtls/hostcheck.c
tests/data/test1397
tests/unit/unit1397.c