mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	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 909b5714e1)
Co-authored-by: Christian Heimes <christian@python.org>
			
			
This commit is contained in:
		
							parent
							
								
									983b17ca13
								
							
						
					
					
						commit
						a08b7c3bb0
					
				
					 6 changed files with 90 additions and 34 deletions
				
			
		|  | @ -316,6 +316,7 @@ def test_basic_auth_httperror(self): | |||
|         self.assertRaises(urllib.error.HTTPError, urllib.request.urlopen, self.server_url) | ||||
| 
 | ||||
| 
 | ||||
| @hashlib_helper.requires_hashdigest("md5") | ||||
| class ProxyAuthTests(unittest.TestCase): | ||||
|     URL = "http://localhost" | ||||
| 
 | ||||
|  | @ -323,7 +324,6 @@ class ProxyAuthTests(unittest.TestCase): | |||
|     PASSWD = "test123" | ||||
|     REALM = "TestRealm" | ||||
| 
 | ||||
|     @hashlib_helper.requires_hashdigest("md5") | ||||
|     def setUp(self): | ||||
|         super(ProxyAuthTests, self).setUp() | ||||
|         # Ignore proxy bypass settings in the environment. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Miss Islington (bot)
						Miss Islington (bot)