• Home
  • Raw
  • Download

Lines Matching refs:msg_hdr

153     const struct hm_header_st *msg_hdr) {  in dtls1_hm_fragment_new()  argument
159 frag->type = msg_hdr->type; in dtls1_hm_fragment_new()
160 frag->seq = msg_hdr->seq; in dtls1_hm_fragment_new()
161 frag->msg_len = msg_hdr->msg_len; in dtls1_hm_fragment_new()
165 (uint8_t *)OPENSSL_malloc(DTLS1_HM_HEADER_LENGTH + msg_hdr->msg_len); in dtls1_hm_fragment_new()
172 !CBB_add_u8(cbb.get(), msg_hdr->type) || in dtls1_hm_fragment_new()
173 !CBB_add_u24(cbb.get(), msg_hdr->msg_len) || in dtls1_hm_fragment_new()
174 !CBB_add_u16(cbb.get(), msg_hdr->seq) || in dtls1_hm_fragment_new()
176 !CBB_add_u24(cbb.get(), msg_hdr->msg_len) || in dtls1_hm_fragment_new()
183 if (msg_hdr->msg_len > 0) { in dtls1_hm_fragment_new()
185 if (msg_hdr->msg_len + 7 < msg_hdr->msg_len) { in dtls1_hm_fragment_new()
189 size_t bitmask_len = (msg_hdr->msg_len + 7) / 8; in dtls1_hm_fragment_new()
266 SSL *ssl, uint8_t *out_alert, const struct hm_header_st *msg_hdr) { in dtls1_get_incoming_message() argument
267 if (msg_hdr->seq < ssl->d1->handshake_read_seq || in dtls1_get_incoming_message()
268 msg_hdr->seq - ssl->d1->handshake_read_seq >= SSL_MAX_HANDSHAKE_FLIGHT) { in dtls1_get_incoming_message()
273 size_t idx = msg_hdr->seq % SSL_MAX_HANDSHAKE_FLIGHT; in dtls1_get_incoming_message()
276 assert(frag->seq == msg_hdr->seq); in dtls1_get_incoming_message()
279 if (frag->type != msg_hdr->type || in dtls1_get_incoming_message()
280 frag->msg_len != msg_hdr->msg_len) { in dtls1_get_incoming_message()
289 ssl->d1->incoming_messages[idx] = dtls1_hm_fragment_new(msg_hdr); in dtls1_get_incoming_message()
354 struct hm_header_st msg_hdr; in dtls1_open_handshake() local
356 if (!dtls1_parse_fragment(&cbs, &msg_hdr, &body)) { in dtls1_open_handshake()
362 const size_t frag_off = msg_hdr.frag_off; in dtls1_open_handshake()
363 const size_t frag_len = msg_hdr.frag_len; in dtls1_open_handshake()
364 const size_t msg_len = msg_hdr.msg_len; in dtls1_open_handshake()
374 if (ssl->d1->r_epoch == 1 && msg_hdr.seq != ssl->d1->handshake_read_seq) { in dtls1_open_handshake()
380 if (msg_hdr.seq < ssl->d1->handshake_read_seq || in dtls1_open_handshake()
381 msg_hdr.seq > in dtls1_open_handshake()
387 hm_fragment *frag = dtls1_get_incoming_message(ssl, out_alert, &msg_hdr); in dtls1_open_handshake()