• Home
  • Raw
  • Download

Lines Matching refs:msg_hdr

173     const struct hm_header_st *msg_hdr) {  in dtls_new_incoming_message()  argument
179 frag->type = msg_hdr->type; in dtls_new_incoming_message()
180 frag->seq = msg_hdr->seq; in dtls_new_incoming_message()
183 if (!frag->data.InitForOverwrite(DTLS1_HM_HEADER_LENGTH + msg_hdr->msg_len)) { in dtls_new_incoming_message()
188 !CBB_add_u8(cbb.get(), msg_hdr->type) || in dtls_new_incoming_message()
189 !CBB_add_u24(cbb.get(), msg_hdr->msg_len) || in dtls_new_incoming_message()
190 !CBB_add_u16(cbb.get(), msg_hdr->seq) || in dtls_new_incoming_message()
192 !CBB_add_u24(cbb.get(), msg_hdr->msg_len) || in dtls_new_incoming_message()
197 if (!frag->reassembly.Init(msg_hdr->msg_len)) { in dtls_new_incoming_message()
217 SSL *ssl, uint8_t *out_alert, const struct hm_header_st *msg_hdr) { in dtls1_get_incoming_message() argument
218 if (msg_hdr->seq < ssl->d1->handshake_read_seq || in dtls1_get_incoming_message()
219 msg_hdr->seq - ssl->d1->handshake_read_seq >= SSL_MAX_HANDSHAKE_FLIGHT) { in dtls1_get_incoming_message()
224 size_t idx = msg_hdr->seq % SSL_MAX_HANDSHAKE_FLIGHT; in dtls1_get_incoming_message()
227 assert(frag->seq == msg_hdr->seq); in dtls1_get_incoming_message()
230 if (frag->type != msg_hdr->type || // in dtls1_get_incoming_message()
231 frag->msg_len() != msg_hdr->msg_len) { in dtls1_get_incoming_message()
240 ssl->d1->incoming_messages[idx] = dtls_new_incoming_message(msg_hdr); in dtls1_get_incoming_message()
256 struct hm_header_st msg_hdr; in dtls1_process_handshake_fragments() local
258 if (!dtls1_parse_fragment(&cbs, &msg_hdr, &body)) { in dtls1_process_handshake_fragments()
264 const size_t frag_off = msg_hdr.frag_off; in dtls1_process_handshake_fragments()
265 const size_t frag_len = msg_hdr.frag_len; in dtls1_process_handshake_fragments()
266 const size_t msg_len = msg_hdr.msg_len; in dtls1_process_handshake_fragments()
273 if (msg_hdr.seq < ssl->d1->handshake_read_seq || in dtls1_process_handshake_fragments()
314 if (msg_hdr.seq - ssl->d1->handshake_read_seq > SSL_MAX_HANDSHAKE_FLIGHT) { in dtls1_process_handshake_fragments()
321 dtls1_get_incoming_message(ssl, out_alert, &msg_hdr); in dtls1_process_handshake_fragments()