Skip to content

Commit 77545f0

Browse files
committed
CVE-2023-40217 Add in more bits from Python 3.8.18 that are needed
1 parent c2254d2 commit 77545f0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Modules/_ssl.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2690,6 +2690,15 @@ set_check_hostname(PySSLContext *self, PyObject *arg, void *c)
26902690
return 0;
26912691
}
26922692

2693+
static PyObject *
2694+
get_post_handshake_auth(PySSLContext *self, void *c) {
2695+
#if TLS1_3_VERSION
2696+
return PyBool_FromLong(self->post_handshake_auth);
2697+
#else
2698+
Py_RETURN_NONE;
2699+
#endif
2700+
}
2701+
26932702
#if TLS1_3_VERSION
26942703
static int
26952704
set_post_handshake_auth(PySSLContext *self, PyObject *arg, void *c) {

0 commit comments

Comments
 (0)