@ -30,7 +30,7 @@
/* Cached module state, also used in SSLSocket and SSLSession code. */
_sslmodulestate *state;
} PySSLContext;
@@ -2346,8 +2359 ,14 @@ _ssl__SSLSocket_write_impl(PySSLSocket *
@@ -2358,8 +2371 ,14 @@ _ssl__SSLSocket_write_impl(PySSLSocket *
do {
PySSL_BEGIN_ALLOW_THREADS
@ -45,7 +45,7 @@
PySSL_END_ALLOW_THREADS
self->err = err;
@@ -2498,8 +2517 ,14 @@ _ssl__SSLSocket_read_impl(PySSLSocket *s
@@ -2510,8 +2529 ,14 @@ _ssl__SSLSocket_read_impl(PySSLSocket *s
do {
PySSL_BEGIN_ALLOW_THREADS
@ -60,7 +60,7 @@
PySSL_END_ALLOW_THREADS
self->err = err;
@@ -3062,8 +3087 ,10 @@ _ssl__SSLContext_impl(PyTypeObject *type
@@ -3074,8 +3099 ,10 @@ _ssl__SSLContext_impl(PyTypeObject *type
self->hostflags = X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS;
self->protocol = proto_version;
self->msg_cb = NULL;
@ -71,7 +71,7 @@
self->alpn_protocols = NULL;
self->set_sni_cb = NULL;
self->state = get_ssl_state(module);
@@ -3187,6 +3214 ,7 @@ context_clear(PySSLContext *self)
@@ -3199,6 +3226 ,7 @@ context_clear(PySSLContext *self)
{
Py_CLEAR(self->set_sni_cb);
Py_CLEAR(self->msg_cb);
@ -79,7 +79,7 @@
Py_CLEAR(self->keylog_filename);
if (self->keylog_bio != NULL) {
PySSL_BEGIN_ALLOW_THREADS
@@ -3194,6 +3222 ,7 @@ context_clear(PySSLContext *self)
@@ -3206,6 +3234 ,7 @@ context_clear(PySSLContext *self)
PySSL_END_ALLOW_THREADS
self->keylog_bio = NULL;
}
@ -87,7 +87,7 @@
return 0;
}
@@ -4603,8 +4632 ,10 @@ static PyGetSetDef context_getsetlist[]
@@ -4615,8 +4644 ,10 @@ static PyGetSetDef context_getsetlist[]
(setter) set_minimum_version, NULL},
{"maximum_version", (getter) get_maximum_version,
(setter) set_maximum_version, NULL},