Lines Matching refs:msg_header
98 if (frag->msg_header.is_ccs) { in dtls1_hm_fragment_free()
99 EVP_CIPHER_CTX_free(frag->msg_header. in dtls1_hm_fragment_free()
101 EVP_MD_CTX_free(frag->msg_header.saved_retransmit_state.write_hash); in dtls1_hm_fragment_free()
486 if (frag->msg_header.seq < s->d1->handshake_read_seq) { in dtls1_retrieve_buffered_fragment()
500 if (s->d1->handshake_read_seq == frag->msg_header.seq) { in dtls1_retrieve_buffered_fragment()
501 size_t frag_len = frag->msg_header.frag_len; in dtls1_retrieve_buffered_fragment()
505 ret = dtls1_preprocess_fragment(s, &frag->msg_header); in dtls1_retrieve_buffered_fragment()
507 if (ret && frag->msg_header.frag_len > 0) { in dtls1_retrieve_buffered_fragment()
510 memcpy(&p[frag->msg_header.frag_off], frag->fragment, in dtls1_retrieve_buffered_fragment()
511 frag->msg_header.frag_len); in dtls1_retrieve_buffered_fragment()
558 memcpy(&(frag->msg_header), msg_hdr, sizeof(*msg_hdr)); in dtls1_reassemble_fragment()
559 frag->msg_header.frag_len = frag->msg_header.msg_len; in dtls1_reassemble_fragment()
560 frag->msg_header.frag_off = 0; in dtls1_reassemble_fragment()
563 if (frag->msg_header.msg_len != msg_hdr->msg_len) { in dtls1_reassemble_fragment()
697 memcpy(&(frag->msg_header), msg_hdr, sizeof(*msg_hdr)); in dtls1_process_out_of_seq_message()
1022 (frag->msg_header.seq, in dtls1_retransmit_buffered_messages()
1023 frag->msg_header.is_ccs), &found) <= 0) in dtls1_retransmit_buffered_messages()
1062 frag->msg_header.msg_len = s->d1->w_msg_hdr.msg_len; in dtls1_buffer_message()
1063 frag->msg_header.seq = s->d1->w_msg_hdr.seq; in dtls1_buffer_message()
1064 frag->msg_header.type = s->d1->w_msg_hdr.type; in dtls1_buffer_message()
1065 frag->msg_header.frag_off = 0; in dtls1_buffer_message()
1066 frag->msg_header.frag_len = s->d1->w_msg_hdr.msg_len; in dtls1_buffer_message()
1067 frag->msg_header.is_ccs = is_ccs; in dtls1_buffer_message()
1070 frag->msg_header.saved_retransmit_state.enc_write_ctx = s->enc_write_ctx; in dtls1_buffer_message()
1071 frag->msg_header.saved_retransmit_state.write_hash = s->write_hash; in dtls1_buffer_message()
1072 frag->msg_header.saved_retransmit_state.compress = s->compress; in dtls1_buffer_message()
1073 frag->msg_header.saved_retransmit_state.session = s->session; in dtls1_buffer_message()
1074 frag->msg_header.saved_retransmit_state.epoch = in dtls1_buffer_message()
1080 char)(dtls1_get_queue_priority(frag->msg_header.seq, in dtls1_buffer_message()
1081 frag->msg_header.is_ccs) >> 8); in dtls1_buffer_message()
1084 char)(dtls1_get_queue_priority(frag->msg_header.seq, in dtls1_buffer_message()
1085 frag->msg_header.is_ccs)); in dtls1_buffer_message()
1123 if (frag->msg_header.is_ccs) in dtls1_retransmit_message()
1129 frag->msg_header.msg_len + header_length); in dtls1_retransmit_message()
1130 s->init_num = frag->msg_header.msg_len + header_length; in dtls1_retransmit_message()
1132 dtls1_set_message_header_int(s, frag->msg_header.type, in dtls1_retransmit_message()
1133 frag->msg_header.msg_len, in dtls1_retransmit_message()
1134 frag->msg_header.seq, 0, in dtls1_retransmit_message()
1135 frag->msg_header.frag_len); in dtls1_retransmit_message()
1147 s->enc_write_ctx = frag->msg_header.saved_retransmit_state.enc_write_ctx; in dtls1_retransmit_message()
1148 s->write_hash = frag->msg_header.saved_retransmit_state.write_hash; in dtls1_retransmit_message()
1149 s->compress = frag->msg_header.saved_retransmit_state.compress; in dtls1_retransmit_message()
1150 s->session = frag->msg_header.saved_retransmit_state.session; in dtls1_retransmit_message()
1152 frag->msg_header. in dtls1_retransmit_message()
1155 ret = dtls1_do_write(s, frag->msg_header.is_ccs ? in dtls1_retransmit_message()