mirror of
https://github.com/curl/curl.git
synced 2026-08-26 19:23:32 +03:00
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:
parent
80214dca6b
commit
2cb6ba672d
3 changed files with 65 additions and 60 deletions
|
|
@ -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 */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue