]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-9216: hashlib usedforsecurity fixes (GH-20258)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 22 May 2020 18:22:30 +0000 (11:22 -0700)
committerGitHub <noreply@github.com>
Fri, 22 May 2020 18:22:30 +0000 (11:22 -0700)
commita08b7c3bb0ef9da32400d23b13f78245cd7a9541
tree136a3cdaeed598831d794f19003350d4dc2b87d4
parent983b17ca1319adf9f06d5f2779a44450241eba54
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
(cherry picked from commit 909b5714e1303357868bc5e281c1cf508d5d5a17)

Co-authored-by: Christian Heimes <christian@python.org>
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]