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
This commit is contained in:
Daniel Stenberg 2023-04-24 21:07:02 +02:00
parent a4aebd73e2
commit 199f2d440d
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 206 additions and 184 deletions

View file

@ -2,8 +2,7 @@
<info>
<keywords>
unittest
ssl
wildcard
Curl_cert_hostcheck
</keywords>
</info>
@ -16,9 +15,8 @@ none
<features>
unittest
</features>
<name>
Check wildcard certificate matching function Curl_cert_hostcheck
</name>
<name>
Curl_cert_hostcheck unit tests
</name>
</client>
</testcase>