]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-9216: hashlib usedforsecurity fixes (GH-20258)
authorChristian Heimes <christian@python.org>
Fri, 22 May 2020 18:04:33 +0000 (20:04 +0200)
committerGitHub <noreply@github.com>
Fri, 22 May 2020 18:04:33 +0000 (11:04 -0700)
commit909b5714e1303357868bc5e281c1cf508d5d5a17
tree107c672bb4d36471411b2c05333589bfa5dc8ade
parent06a1b8915d6674e40f0dccc422ca2c06212392d8
bpo-9216: hashlib usedforsecurity fixes (GH-20258)

func:`hashlib.new` passed ``usedforsecurity`` to OpenSSL EVP constructor
``_hashlib.new()``. test_hashlib and test_smtplib handle strict security
policy better.

Signed-off-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: @tiran
Lib/hashlib.py
Lib/test/test_hashlib.py
Lib/test/test_smtplib.py
Lib/test/test_tools/test_md5sum.py
Lib/test/test_urllib2_localnet.py
Misc/NEWS.d/next/Library/2020-05-20-12-53-20.bpo-9216.ps7Yf1.rst [new file with mode: 0644]