Lines Matching refs:msg_hdr
450 SSL *ssl, const struct hm_header_st *msg_hdr) { in dtls1_get_buffered_message() argument
453 seq64be[6] = (uint8_t)(msg_hdr->seq >> 8); in dtls1_get_buffered_message()
454 seq64be[7] = (uint8_t)msg_hdr->seq; in dtls1_get_buffered_message()
460 frag = dtls1_hm_fragment_new(msg_hdr->msg_len, in dtls1_get_buffered_message()
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()
518 struct hm_header_st msg_hdr; in dtls1_process_fragment() local
519 dtls1_get_message_header(header, &msg_hdr); in dtls1_process_fragment()
523 const size_t frag_off = msg_hdr.frag_off; in dtls1_process_fragment()
524 const size_t frag_len = msg_hdr.frag_len; in dtls1_process_fragment()
525 const size_t msg_len = msg_hdr.msg_len; in dtls1_process_fragment()
535 if (msg_hdr.seq < ssl->d1->handshake_read_seq || in dtls1_process_fragment()
536 msg_hdr.seq > (unsigned)ssl->d1->handshake_read_seq + in dtls1_process_fragment()
545 hm_fragment *frag = dtls1_get_buffered_message(ssl, &msg_hdr); in dtls1_process_fragment()
859 struct hm_header_st *msg_hdr = &ssl->d1->w_msg_hdr; in dtls1_set_message_header() local
861 msg_hdr->type = mt; in dtls1_set_message_header()
862 msg_hdr->msg_len = len; in dtls1_set_message_header()
863 msg_hdr->seq = seq_num; in dtls1_set_message_header()
864 msg_hdr->frag_off = frag_off; in dtls1_set_message_header()
865 msg_hdr->frag_len = frag_len; in dtls1_set_message_header()
873 struct hm_header_st *msg_hdr) { in dtls1_get_message_header() argument
874 memset(msg_hdr, 0x00, sizeof(struct hm_header_st)); in dtls1_get_message_header()
875 msg_hdr->type = *(data++); in dtls1_get_message_header()
876 n2l3(data, msg_hdr->msg_len); in dtls1_get_message_header()
878 n2s(data, msg_hdr->seq); in dtls1_get_message_header()
879 n2l3(data, msg_hdr->frag_off); in dtls1_get_message_header()
880 n2l3(data, msg_hdr->frag_len); in dtls1_get_message_header()