diff options
author | Christian Heimes <christian@python.org> | 2021-05-02 07:47:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-02 07:47:45 (GMT) |
commit | 91554e4c5ca3c762998296522f854a7166ba84f0 (patch) | |
tree | aa6e08eedef59c4a4d5c750ed60e5d463f05a4ad /Modules/sha256module.c | |
parent | fd0bc7e7f4f2c7de98a1ebc7ad1ef65b8f8f7ad6 (diff) | |
download | cpython-91554e4c5ca3c762998296522f854a7166ba84f0.zip cpython-91554e4c5ca3c762998296522f854a7166ba84f0.tar.gz cpython-91554e4c5ca3c762998296522f854a7166ba84f0.tar.bz2 |
bpo-43908: Mark ssl, hash, and hmac types as immutable (GH-25792)
Signed-off-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Modules/sha256module.c')
-rw-r--r-- | Modules/sha256module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/sha256module.c b/Modules/sha256module.c index ccb1862..1edb9dc 100644 --- a/Modules/sha256module.c +++ b/Modules/sha256module.c @@ -544,14 +544,14 @@ static PyType_Slot sha256_types_slots[] = { static PyType_Spec sha224_type_spec = { .name = "_sha256.sha224", .basicsize = sizeof(SHAobject), - .flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_DISALLOW_INSTANTIATION, + .flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_DISALLOW_INSTANTIATION | Py_TPFLAGS_IMMUTABLETYPE, .slots = sha256_types_slots }; static PyType_Spec sha256_type_spec = { .name = "_sha256.sha256", .basicsize = sizeof(SHAobject), - .flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_DISALLOW_INSTANTIATION, + .flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_DISALLOW_INSTANTIATION | Py_TPFLAGS_IMMUTABLETYPE, .slots = sha256_types_slots }; |