• Home
  • Raw
  • Download

Lines Matching refs:hs_buf

2758         mbedtls_ssl_hs_buffer *hs_buf;  in mbedtls_ssl_update_handshake_status()  local
2771 for( offset = 0, hs_buf = &hs->buffering.hs[0]; in mbedtls_ssl_update_handshake_status()
2773 offset++, hs_buf++ ) in mbedtls_ssl_update_handshake_status()
2775 *hs_buf = *(hs_buf + 1); in mbedtls_ssl_update_handshake_status()
2779 memset( hs_buf, 0, sizeof( mbedtls_ssl_hs_buffer ) ); in mbedtls_ssl_update_handshake_status()
3637 mbedtls_ssl_hs_buffer * hs_buf; in ssl_load_buffered_message() local
3676 hs_buf = &hs->buffering.hs[offset]; in ssl_load_buffered_message()
3677 if( hs_buf->is_valid == 1 ) in ssl_load_buffered_message()
3681 hs_buf->is_complete ? "fully" : "partially" ) ); in ssl_load_buffered_message()
3689 hs_buf = &hs->buffering.hs[0]; in ssl_load_buffered_message()
3690 if( ( hs_buf->is_valid == 1 ) && ( hs_buf->is_complete == 1 ) ) in ssl_load_buffered_message()
3693 size_t msg_len = ( hs_buf->data[1] << 16 ) | in ssl_load_buffered_message()
3694 ( hs_buf->data[2] << 8 ) | in ssl_load_buffered_message()
3695 hs_buf->data[3]; in ssl_load_buffered_message()
3707 hs_buf->data, msg_len + 12 ); in ssl_load_buffered_message()
3712 memcpy( ssl->in_msg, hs_buf->data, ssl->in_hslen ); in ssl_load_buffered_message()
3795 mbedtls_ssl_hs_buffer *hs_buf; in ssl_buffer_message() local
3822 hs_buf = &hs->buffering.hs[ recv_msg_seq_offset ]; in ssl_buffer_message()
3825 if( !hs_buf->is_valid ) in ssl_buffer_message()
3829 hs_buf->is_fragmented = in ssl_buffer_message()
3852 hs_buf->is_fragmented ); in ssl_buffer_message()
3898 hs_buf->data = mbedtls_calloc( 1, reassembly_buf_sz ); in ssl_buffer_message()
3899 if( hs_buf->data == NULL ) in ssl_buffer_message()
3904 hs_buf->data_len = reassembly_buf_sz; in ssl_buffer_message()
3908 memcpy( hs_buf->data, ssl->in_msg, 6 ); in ssl_buffer_message()
3909 memset( hs_buf->data + 6, 0, 3 ); in ssl_buffer_message()
3910 memcpy( hs_buf->data + 9, hs_buf->data + 1, 3 ); in ssl_buffer_message()
3912 hs_buf->is_valid = 1; in ssl_buffer_message()
3919 if( memcmp( hs_buf->data, ssl->in_msg, 4 ) != 0 ) in ssl_buffer_message()
3927 if( !hs_buf->is_complete ) in ssl_buffer_message()
3930 unsigned char * const msg = hs_buf->data + 12; in ssl_buffer_message()
3946 if( hs_buf->is_fragmented ) in ssl_buffer_message()
3950 hs_buf->is_complete = ( ssl_bitmask_check( bitmask, in ssl_buffer_message()
3955 hs_buf->is_complete = 1; in ssl_buffer_message()
3959 hs_buf->is_complete ? "" : "not yet " ) ); in ssl_buffer_message()
5449 mbedtls_ssl_hs_buffer * const hs_buf = &hs->buffering.hs[slot]; in ssl_buffering_free_slot() local
5454 if( hs_buf->is_valid == 1 ) in ssl_buffering_free_slot()
5456 hs->buffering.total_bytes_buffered -= hs_buf->data_len; in ssl_buffering_free_slot()
5457 mbedtls_platform_zeroize( hs_buf->data, hs_buf->data_len ); in ssl_buffering_free_slot()
5458 mbedtls_free( hs_buf->data ); in ssl_buffering_free_slot()
5459 memset( hs_buf, 0, sizeof( mbedtls_ssl_hs_buffer ) ); in ssl_buffering_free_slot()