mirror of
https://github.com/curl/curl.git
synced 2026-05-20 13:36:19 +03:00
vtls: use Curl_safecmp for CRLfile and pinned_key comparison
Both are filesystem paths (or case-sensitive hash strings for pinned_key). curl_strequal is case-insensitive and would treat /etc/ssl/Crl.pem and /etc/ssl/crl.pem as the same file, unlike the other path fields (CApath, CAfile, issuercert, clientcert) which already use Curl_safecmp. Closes #21668
This commit is contained in:
parent
d24652971a
commit
81da4ee249
1 changed files with 2 additions and 2 deletions
|
|
@ -217,8 +217,8 @@ static bool match_ssl_primary_config(struct Curl_easy *data,
|
|||
curl_strequal(c1->cipher_list13, c2->cipher_list13) &&
|
||||
curl_strequal(c1->curves, c2->curves) &&
|
||||
curl_strequal(c1->signature_algorithms, c2->signature_algorithms) &&
|
||||
curl_strequal(c1->CRLfile, c2->CRLfile) &&
|
||||
curl_strequal(c1->pinned_key, c2->pinned_key))
|
||||
Curl_safecmp(c1->CRLfile, c2->CRLfile) &&
|
||||
Curl_safecmp(c1->pinned_key, c2->pinned_key))
|
||||
return TRUE;
|
||||
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue