mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-94101 Disallow instantiation of SSLSession objects (GH-94102)
Fixes #94101 Automerge-Triggered-By: GH:tiran
This commit is contained in:
parent
fda4b2f063
commit
dc8e1d0390
2 changed files with 5 additions and 1 deletions
|
@ -5067,7 +5067,8 @@ static PyType_Spec PySSLSession_spec = {
|
|||
.name = "_ssl.SSLSession",
|
||||
.basicsize = sizeof(PySSLSession),
|
||||
.flags = (Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC |
|
||||
Py_TPFLAGS_IMMUTABLETYPE),
|
||||
Py_TPFLAGS_IMMUTABLETYPE |
|
||||
Py_TPFLAGS_DISALLOW_INSTANTIATION),
|
||||
.slots = PySSLSession_slots,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue