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