[PATCH] hostcheck: fix host name wildcard checking
authorDaniel Stenberg <daniel@haxx.se>
Mon, 24 Apr 2023 19:07:02 +0000 (21:07 +0200)
committerSamuel Henrique <samueloph@debian.org>
Sun, 10 Dec 2023 06:07:30 +0000 (06:07 +0000)
commit93b83e61f0bf8f981f4305edc718d9e54fe28db3
tree1858c37d2c4daf18b2927a1c8270abdbaa48ee87
parente8a727f030d188655b470f84392afde1a2a60df6
[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