• Home
  • Raw
  • Download

Lines Matching refs:hs

2745     mbedtls_ssl_handshake_params * const hs = ssl->handshake;  in mbedtls_ssl_update_handshake_status()  local
2747 if( ssl->state != MBEDTLS_SSL_HANDSHAKE_OVER && hs != NULL ) in mbedtls_ssl_update_handshake_status()
2761 hs->in_msg_seq++; in mbedtls_ssl_update_handshake_status()
2771 for( offset = 0, hs_buf = &hs->buffering.hs[0]; in mbedtls_ssl_update_handshake_status()
3636 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_load_buffered_message() local
3640 if( hs == NULL ) in ssl_load_buffered_message()
3650 if( !hs->buffering.seen_ccs ) in ssl_load_buffered_message()
3666 hs->buffering.seen_ccs = 0; in ssl_load_buffered_message()
3676 hs_buf = &hs->buffering.hs[offset]; in ssl_load_buffered_message()
3680 hs->in_msg_seq + offset, in ssl_load_buffered_message()
3689 hs_buf = &hs->buffering.hs[0]; in ssl_load_buffered_message()
3720 hs->in_msg_seq ) ); in ssl_load_buffered_message()
3735 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_buffer_make_space() local
3744 hs->buffering.total_bytes_buffered ) ) in ssl_buffer_make_space()
3763 hs->buffering.total_bytes_buffered ) ) in ssl_buffer_make_space()
3776 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_buffer_message() local
3778 if( hs == NULL ) in ssl_buffer_message()
3788 hs->buffering.seen_ccs = 1; in ssl_buffer_message()
3822 hs_buf = &hs->buffering.hs[ recv_msg_seq_offset ]; in ssl_buffer_message()
3844 if( hs->buffering.total_bytes_buffered > in ssl_buffer_message()
3855 hs->buffering.total_bytes_buffered ) ) in ssl_buffer_message()
3866 hs->buffering.total_bytes_buffered ) ); in ssl_buffer_message()
3876 hs->buffering.total_bytes_buffered ) ); in ssl_buffer_message()
3889 hs->buffering.total_bytes_buffered ) ); in ssl_buffer_message()
3914 hs->buffering.total_bytes_buffered += reassembly_buf_sz; in ssl_buffer_message()
4076 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_free_buffered_record() local
4077 if( hs == NULL ) in ssl_free_buffered_record()
4080 if( hs->buffering.future_record.data != NULL ) in ssl_free_buffered_record()
4082 hs->buffering.total_bytes_buffered -= in ssl_free_buffered_record()
4083 hs->buffering.future_record.len; in ssl_free_buffered_record()
4085 mbedtls_free( hs->buffering.future_record.data ); in ssl_free_buffered_record()
4086 hs->buffering.future_record.data = NULL; in ssl_free_buffered_record()
4092 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_load_buffered_record() local
4104 if( hs == NULL ) in ssl_load_buffered_record()
4107 rec = hs->buffering.future_record.data; in ssl_load_buffered_record()
4108 rec_len = hs->buffering.future_record.len; in ssl_load_buffered_record()
4109 rec_epoch = hs->buffering.future_record.epoch; in ssl_load_buffered_record()
4150 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_buffer_future_record() local
4153 if( hs == NULL ) in ssl_buffer_future_record()
4162 if( hs->buffering.future_record.data != NULL ) in ssl_buffer_future_record()
4167 hs->buffering.total_bytes_buffered ) ) in ssl_buffer_future_record()
4174 hs->buffering.total_bytes_buffered ) ); in ssl_buffer_future_record()
4185 hs->buffering.future_record.epoch = ssl->in_epoch + 1; in ssl_buffer_future_record()
4186 hs->buffering.future_record.len = rec->buf_len; in ssl_buffer_future_record()
4188 hs->buffering.future_record.data = in ssl_buffer_future_record()
4189 mbedtls_calloc( 1, hs->buffering.future_record.len ); in ssl_buffer_future_record()
4190 if( hs->buffering.future_record.data == NULL ) in ssl_buffer_future_record()
4197 memcpy( hs->buffering.future_record.data, rec->buf, rec->buf_len ); in ssl_buffer_future_record()
4199 hs->buffering.total_bytes_buffered += rec->buf_len; in ssl_buffer_future_record()
5434 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in mbedtls_ssl_buffering_free() local
5436 if( hs == NULL ) in mbedtls_ssl_buffering_free()
5448 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_buffering_free_slot() local
5449 mbedtls_ssl_hs_buffer * const hs_buf = &hs->buffering.hs[slot]; in ssl_buffering_free_slot()
5456 hs->buffering.total_bytes_buffered -= hs_buf->data_len; in ssl_buffering_free_slot()