hsts: rename Curl_hsts() to hsts_check() and make it static

It is no longer used outside of hsts.c

Closes #21507
This commit is contained in:
Daniel Stenberg 2026-05-05 17:01:41 +02:00
parent 80214dca6b
commit 2cb6ba672d
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 65 additions and 60 deletions

View file

@ -138,7 +138,7 @@ static CURLcode test_unit1660(const char *arg)
}
chost = headers[i].chost ? headers[i].chost : headers[i].host;
e = Curl_hsts(h, chost, strlen(chost), TRUE);
e = hsts_check(h, chost, strlen(chost), TRUE);
showsts(e, chost);
}
@ -147,7 +147,7 @@ static CURLcode test_unit1660(const char *arg)
/* verify that it is exists for 7 seconds */
chost = "expire.example";
for(i = 100; i < 110; i++) {
e = Curl_hsts(h, chost, strlen(chost), TRUE);
e = hsts_check(h, chost, strlen(chost), TRUE);
showsts(e, chost);
deltatime++; /* another second passed */
}