• Home
  • Raw
  • Download

Lines Matching refs:msg_header

214   size_t msg_len = frag->msg_header.msg_len;  in dtls1_hm_fragment_mark()
421 assert(ssl->d1->handshake_read_seq <= frag->msg_header.seq); in dtls1_is_next_message_complete()
423 return ssl->d1->handshake_read_seq == frag->msg_header.seq && in dtls1_is_next_message_complete()
465 memcpy(&frag->msg_header, msg_hdr, sizeof(*msg_hdr)); in dtls1_get_buffered_message()
477 assert(frag->msg_header.seq == msg_hdr->seq); in dtls1_get_buffered_message()
478 if (frag->msg_header.type != msg_hdr->type || in dtls1_get_buffered_message()
479 frag->msg_header.msg_len != msg_hdr->msg_len) { in dtls1_get_buffered_message()
549 assert(frag->msg_header.msg_len == msg_len); in dtls1_process_fragment()
614 assert(ssl->d1->handshake_read_seq == frag->msg_header.seq); in dtls1_get_message()
617 if (frag->msg_header.msg_len > (size_t)max) { in dtls1_get_message()
626 if (!BUF_MEM_grow(ssl->init_buf, (size_t)frag->msg_header.msg_len + in dtls1_get_message()
630 !CBB_add_u8(&cbb, frag->msg_header.type) || in dtls1_get_message()
631 !CBB_add_u24(&cbb, frag->msg_header.msg_len) || in dtls1_get_message()
632 !CBB_add_u16(&cbb, frag->msg_header.seq) || in dtls1_get_message()
634 !CBB_add_u24(&cbb, frag->msg_header.msg_len) || in dtls1_get_message()
635 !CBB_add_bytes(&cbb, frag->fragment, frag->msg_header.msg_len) || in dtls1_get_message()
641 assert(len == (size_t)frag->msg_header.msg_len + DTLS1_HM_HEADER_LENGTH); in dtls1_get_message()
647 ssl->s3->tmp.message_type = frag->msg_header.type; in dtls1_get_message()
648 ssl->s3->tmp.message_size = frag->msg_header.msg_len; in dtls1_get_message()
650 ssl->init_num = frag->msg_header.msg_len; in dtls1_get_message()
721 assert(frag->msg_header.epoch <= ssl->d1->w_epoch); in dtls1_retransmit_message()
723 if (ssl->d1->w_epoch == 1 && frag->msg_header.epoch == 0) { in dtls1_retransmit_message()
729 if (frag->msg_header.is_ccs) { in dtls1_retransmit_message()
735 frag->msg_header.msg_len + DTLS1_HM_HEADER_LENGTH); in dtls1_retransmit_message()
736 ssl->init_num = frag->msg_header.msg_len + DTLS1_HM_HEADER_LENGTH; in dtls1_retransmit_message()
738 dtls1_set_message_header(ssl, frag->msg_header.type, in dtls1_retransmit_message()
739 frag->msg_header.msg_len, frag->msg_header.seq, in dtls1_retransmit_message()
740 0, frag->msg_header.frag_len); in dtls1_retransmit_message()
774 frag->msg_header.is_ccs = 1; in dtls1_buffer_change_cipher_spec()
775 frag->msg_header.epoch = ssl->d1->w_epoch; in dtls1_buffer_change_cipher_spec()
808 frag->msg_header.msg_len = ssl->d1->w_msg_hdr.msg_len; in dtls1_buffer_message()
809 frag->msg_header.seq = ssl->d1->w_msg_hdr.seq; in dtls1_buffer_message()
810 frag->msg_header.type = ssl->d1->w_msg_hdr.type; in dtls1_buffer_message()
811 frag->msg_header.frag_off = 0; in dtls1_buffer_message()
812 frag->msg_header.frag_len = ssl->d1->w_msg_hdr.msg_len; in dtls1_buffer_message()
813 frag->msg_header.is_ccs = 0; in dtls1_buffer_message()
814 frag->msg_header.epoch = ssl->d1->w_epoch; in dtls1_buffer_message()
816 uint16_t priority = dtls1_get_queue_priority(frag->msg_header.seq, in dtls1_buffer_message()