mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
gh-94637: Release GIL in SSLContext.set_default_verify_paths (GH-94658)
This commit is contained in:
parent
0fc8ac0b0d
commit
78307c7dc2
2 changed files with 8 additions and 1 deletions
|
|
@ -4302,7 +4302,11 @@ static PyObject *
|
|||
_ssl__SSLContext_set_default_verify_paths_impl(PySSLContext *self)
|
||||
/*[clinic end generated code: output=0bee74e6e09deaaa input=35f3408021463d74]*/
|
||||
{
|
||||
if (!SSL_CTX_set_default_verify_paths(self->ctx)) {
|
||||
int rc;
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
rc = SSL_CTX_set_default_verify_paths(self->ctx);
|
||||
Py_END_ALLOW_THREADS
|
||||
if (!rc) {
|
||||
_setSSLError(get_state_ctx(self), NULL, 0, __FILE__, __LINE__);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue