Lines Matching refs:hs

3416     mbedtls_ssl_handshake_params * const hs = ssl->handshake;  in mbedtls_ssl_update_handshake_status()  local
3418 if (mbedtls_ssl_is_handshake_over(ssl) == 0 && hs != NULL) { in mbedtls_ssl_update_handshake_status()
3434 hs->in_msg_seq++; in mbedtls_ssl_update_handshake_status()
3444 for (offset = 0, hs_buf = &hs->buffering.hs[0]; in mbedtls_ssl_update_handshake_status()
4390 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_load_buffered_message() local
4394 if (hs == NULL) { in ssl_load_buffered_message()
4404 if (!hs->buffering.seen_ccs) { in ssl_load_buffered_message()
4419 hs->buffering.seen_ccs = 0; in ssl_load_buffered_message()
4428 hs_buf = &hs->buffering.hs[offset]; in ssl_load_buffered_message()
4431 hs->in_msg_seq + offset, in ssl_load_buffered_message()
4440 hs_buf = &hs->buffering.hs[0]; in ssl_load_buffered_message()
4465 hs->in_msg_seq)); in ssl_load_buffered_message()
4481 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_buffer_make_space() local
4490 hs->buffering.total_bytes_buffered)) { in ssl_buffer_make_space()
4509 hs->buffering.total_bytes_buffered)) { in ssl_buffer_make_space()
4522 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_buffer_message() local
4524 if (hs == NULL) { in ssl_buffer_message()
4534 hs->buffering.seen_ccs = 1; in ssl_buffer_message()
4567 hs_buf = &hs->buffering.hs[recv_msg_seq_offset]; in ssl_buffer_message()
4587 if (hs->buffering.total_bytes_buffered > in ssl_buffer_message()
4597 hs->buffering.total_bytes_buffered)) { in ssl_buffer_message()
4609 hs->buffering.total_bytes_buffered)); in ssl_buffer_message()
4620 hs->buffering.total_bytes_buffered)); in ssl_buffer_message()
4636 hs->buffering.total_bytes_buffered)); in ssl_buffer_message()
4662 hs->buffering.total_bytes_buffered += reassembly_buf_sz; in ssl_buffer_message()
4822 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_free_buffered_record() local
4823 if (hs == NULL) { in ssl_free_buffered_record()
4827 if (hs->buffering.future_record.data != NULL) { in ssl_free_buffered_record()
4828 hs->buffering.total_bytes_buffered -= in ssl_free_buffered_record()
4829 hs->buffering.future_record.len; in ssl_free_buffered_record()
4831 mbedtls_free(hs->buffering.future_record.data); in ssl_free_buffered_record()
4832 hs->buffering.future_record.data = NULL; in ssl_free_buffered_record()
4839 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_load_buffered_record() local
4852 if (hs == NULL) { in ssl_load_buffered_record()
4856 rec = hs->buffering.future_record.data; in ssl_load_buffered_record()
4857 rec_len = hs->buffering.future_record.len; in ssl_load_buffered_record()
4858 rec_epoch = hs->buffering.future_record.epoch; in ssl_load_buffered_record()
4900 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_buffer_future_record() local
4903 if (hs == NULL) { in ssl_buffer_future_record()
4914 if (hs->buffering.future_record.data != NULL) { in ssl_buffer_future_record()
4920 hs->buffering.total_bytes_buffered)) { in ssl_buffer_future_record()
4926 hs->buffering.total_bytes_buffered)); in ssl_buffer_future_record()
4937 hs->buffering.future_record.epoch = ssl->in_epoch + 1; in ssl_buffer_future_record()
4938 hs->buffering.future_record.len = rec->buf_len; in ssl_buffer_future_record()
4940 hs->buffering.future_record.data = in ssl_buffer_future_record()
4941 mbedtls_calloc(1, hs->buffering.future_record.len); in ssl_buffer_future_record()
4942 if (hs->buffering.future_record.data == NULL) { in ssl_buffer_future_record()
4948 memcpy(hs->buffering.future_record.data, rec->buf, rec->buf_len); in ssl_buffer_future_record()
4950 hs->buffering.total_bytes_buffered += rec->buf_len; in ssl_buffer_future_record()
6396 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in mbedtls_ssl_buffering_free() local
6398 if (hs == NULL) { in mbedtls_ssl_buffering_free()
6412 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_buffering_free_slot() local
6413 mbedtls_ssl_hs_buffer * const hs_buf = &hs->buffering.hs[slot]; in ssl_buffering_free_slot()
6420 hs->buffering.total_bytes_buffered -= hs_buf->data_len; in ssl_buffering_free_slot()