mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-40479: Fix hashlib's usedforsecurity for OpenSSL 3.0.0 (GH-30455)
This commit is contained in:
parent
a6ca8eee22
commit
443b308fee
9 changed files with 359 additions and 250 deletions
|
@ -318,11 +318,11 @@ class TestPOP3Class(TestCase):
|
|||
def test_rpop(self):
|
||||
self.assertOK(self.client.rpop('foo'))
|
||||
|
||||
@hashlib_helper.requires_hashdigest('md5')
|
||||
@hashlib_helper.requires_hashdigest('md5', openssl=True)
|
||||
def test_apop_normal(self):
|
||||
self.assertOK(self.client.apop('foo', 'dummypassword'))
|
||||
|
||||
@hashlib_helper.requires_hashdigest('md5')
|
||||
@hashlib_helper.requires_hashdigest('md5', openssl=True)
|
||||
def test_apop_REDOS(self):
|
||||
# Replace welcome with very long evil welcome.
|
||||
# NB The upper bound on welcome length is currently 2048.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue