openssl: toggling CURLSSLOPT_NO_PARTIALCHAIN makes a different CA cache - #20009
openssl: toggling CURLSSLOPT_NO_PARTIALCHAIN makes a different CA cache#20009bagder wants to merge 2 commits into
Conversation
Reported-by: Stanislav Fort
|
augment review |
🤖 Augment PR SummarySummary: OpenSSL: include 🤖 Was this summary useful? React with 👍 or 👎 |
There was a problem hiding this comment.
Pull request overview
This PR fixes a bug where toggling the CURLSSLOPT_NO_PARTIALCHAIN option would incorrectly reuse a cached X509_STORE that was created with a different setting for this option. The no_partialchain flag controls whether OpenSSL's X509_V_FLAG_PARTIAL_CHAIN is set on the certificate store, which affects certificate chain validation behavior.
Key Changes:
- Added
no_partialchainfield toossl_x509_sharestructure to track the partial chain state of cached stores - Modified
ossl_cached_x509_store_different()to check if the cached store'sno_partialchainsetting matches the current request - Updated
ossl_set_cached_x509_store()to save theno_partialchainstate when caching a store
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Reported-by: Stanislav Fort