mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	bpo-41561: Fix testing with OpenSSL 1.0.2 (GH-25355)
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 3447750073)
Co-authored-by: Christian Heimes <christian@python.org>
			
			
This commit is contained in:
		
							parent
							
								
									6ec2fb42f9
								
							
						
					
					
						commit
						0983e01837
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -164,7 +164,10 @@ def is_ubuntu():
 | 
			
		|||
    def seclevel_workaround(*ctxs):
 | 
			
		||||
        """"Lower security level to '1' and allow all ciphers for TLS 1.0/1"""
 | 
			
		||||
        for ctx in ctxs:
 | 
			
		||||
            if ctx.minimum_version <= ssl.TLSVersion.TLSv1_1:
 | 
			
		||||
            if (
 | 
			
		||||
                hasattr(ctx, "minimum_version") and
 | 
			
		||||
                ctx.minimum_version <= ssl.TLSVersion.TLSv1_1
 | 
			
		||||
            ):
 | 
			
		||||
                ctx.set_ciphers("@SECLEVEL=1:ALL")
 | 
			
		||||
else:
 | 
			
		||||
    def seclevel_workaround(*ctxs):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue