mirror of
https://github.com/curl/curl.git
synced 2026-05-20 15:16:21 +03:00
vtls_scache: include signature_algorithms in the SSL peer cache key
Curl_ssl_peer_key_make() omitted ssl->signature_algorithms, although match_ssl_primary_config() compares the field. Two handles differing only in CURLOPT_SSL_SIGNATURE_ALGORITHMS therefore shared a peer key and could resume each other's sessions across a shared CURLSH SSL session cache. Add :SIGALGS-%s next to the other ssl_primary_config fields. Closes #21651
This commit is contained in:
parent
a55750af0b
commit
8a86fa13f3
1 changed files with 6 additions and 0 deletions
|
|
@ -223,6 +223,12 @@ CURLcode Curl_ssl_peer_key_make(struct Curl_cfilter *cf,
|
|||
if(r)
|
||||
goto out;
|
||||
}
|
||||
if(ssl->signature_algorithms) {
|
||||
r = curlx_dyn_addf(&buf, ":SIGALGS-%s",
|
||||
ssl->signature_algorithms);
|
||||
if(r)
|
||||
goto out;
|
||||
}
|
||||
if(ssl->verifypeer) {
|
||||
r = cf_ssl_peer_key_add_path(&buf, "CA", ssl->CAfile, &is_local);
|
||||
if(r)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue