mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	Minor refactoring
This commit is contained in:
		
							parent
							
								
									d68b65199f
								
							
						
					
					
						commit
						846ba473af
					
				@ -809,13 +809,12 @@ static int ssl_pick_cert( ssl_context *ssl,
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
#if defined(POLARSSL_ECDSA_C)
 | 
			
		||||
        if( pk_alg == POLARSSL_PK_ECDSA )
 | 
			
		||||
        {
 | 
			
		||||
            if( ssl_key_matches_curves( cur->key, ssl->handshake->curves ) )
 | 
			
		||||
                break;
 | 
			
		||||
        }
 | 
			
		||||
        else
 | 
			
		||||
        if( pk_alg == POLARSSL_PK_ECDSA &&
 | 
			
		||||
            ! ssl_key_matches_curves( cur->key, ssl->handshake->curves ) )
 | 
			
		||||
            continue;
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
        /* If we get there, we got a winner */
 | 
			
		||||
        break;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user