summaryrefslogtreecommitdiffstats
path: root/Python/Python-tokenize.c
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@google.com>2024-02-16 00:24:51 (GMT)
committerGitHub <noreply@github.com>2024-02-16 00:24:51 (GMT)
commitbce693111bff906ccf9281c22371331aaff766ab (patch)
treeadb32926f0d0560e5126a9950a3905ac15ec2646 /Python/Python-tokenize.c
parent58cb634632cd4d27e1348320665bcfa010e9cbb2 (diff)
downloadcpython-bce693111bff906ccf9281c22371331aaff766ab.zip
cpython-bce693111bff906ccf9281c22371331aaff766ab.tar.gz
cpython-bce693111bff906ccf9281c22371331aaff766ab.tar.bz2
gh-114572: Fix locking in cert_store_stats and get_ca_certs (#114573)
* gh-114572: Fix locking in cert_store_stats and get_ca_certs cert_store_stats and get_ca_certs query the SSLContext's X509_STORE with X509_STORE_get0_objects, but reading the result requires a lock. See https://github.com/openssl/openssl/pull/23224 for details. Instead, use X509_STORE_get1_objects, newly added in that PR. X509_STORE_get1_objects does not exist in current OpenSSLs, but we can polyfill it with X509_STORE_lock and X509_STORE_unlock. * Work around const-correctness problem * Add missing X509_STORE_get1_objects failure check * Add blurb
Diffstat (limited to 'Python/Python-tokenize.c')
0 files changed, 0 insertions, 0 deletions