mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	Minor code simplification in ssl programs
This commit is contained in:
		
							parent
							
								
									95c0a63023
								
							
						
					
					
						commit
						8de259b953
					
				@ -458,11 +458,9 @@ int main( int argc, char *argv[] )
 | 
			
		||||
            opt.psk_identity = q;
 | 
			
		||||
        else if( strcmp( p, "force_ciphersuite" ) == 0 )
 | 
			
		||||
        {
 | 
			
		||||
            opt.force_ciphersuite[0] = -1;
 | 
			
		||||
 | 
			
		||||
            opt.force_ciphersuite[0] = ssl_get_ciphersuite_id( q );
 | 
			
		||||
 | 
			
		||||
            if( opt.force_ciphersuite[0] <= 0 )
 | 
			
		||||
            if( opt.force_ciphersuite[0] == 0 )
 | 
			
		||||
            {
 | 
			
		||||
                ret = 2;
 | 
			
		||||
                goto usage;
 | 
			
		||||
 | 
			
		||||
@ -736,11 +736,9 @@ int main( int argc, char *argv[] )
 | 
			
		||||
            opt.psk_list = q;
 | 
			
		||||
        else if( strcmp( p, "force_ciphersuite" ) == 0 )
 | 
			
		||||
        {
 | 
			
		||||
            opt.force_ciphersuite[0] = -1;
 | 
			
		||||
 | 
			
		||||
            opt.force_ciphersuite[0] = ssl_get_ciphersuite_id( q );
 | 
			
		||||
 | 
			
		||||
            if( opt.force_ciphersuite[0] <= 0 )
 | 
			
		||||
            if( opt.force_ciphersuite[0] == 0 )
 | 
			
		||||
            {
 | 
			
		||||
                ret = 2;
 | 
			
		||||
                goto usage;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user