mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	Improve structure of client-side CID extension parsing
Group configuring CID values together.
This commit is contained in:
		
							parent
							
								
									2262648b69
								
							
						
					
					
						commit
						5a29990367
					
				@ -1340,14 +1340,13 @@ static int ssl_parse_cid_ext( mbedtls_ssl_context *ssl,
 | 
			
		||||
        return( MBEDTLS_ERR_SSL_BAD_HS_SERVER_HELLO );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    ssl->handshake->cid_in_use = MBEDTLS_SSL_CID_ENABLED;
 | 
			
		||||
    ssl->handshake->peer_cid_len = (uint8_t) peer_cid_len;
 | 
			
		||||
    memcpy( ssl->handshake->peer_cid, buf, peer_cid_len );
 | 
			
		||||
 | 
			
		||||
    MBEDTLS_SSL_DEBUG_MSG( 3, ( "Use of CID extension negotiated" ) );
 | 
			
		||||
    MBEDTLS_SSL_DEBUG_BUF( 3, "Server CID", buf, peer_cid_len );
 | 
			
		||||
 | 
			
		||||
    ssl->handshake->cid_in_use = MBEDTLS_SSL_CID_ENABLED;
 | 
			
		||||
 | 
			
		||||
    return( 0 );
 | 
			
		||||
}
 | 
			
		||||
#endif /* MBEDTLS_SSL_CID */
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user