Lines Matching defs:cbs
350 CBS cbs;
351 CBS_init(&cbs, record.data(), record.size());
352 while (CBS_len(&cbs) > 0) {
355 CBS body;
356 if (!dtls1_parse_fragment(&cbs, &msg_hdr, &body)) {
459 bool dtls1_parse_fragment(CBS *cbs, struct hm_header_st *out_hdr,
460 CBS *out_body) {
463 if (!CBS_get_u8(cbs, &out_hdr->type) ||
464 !CBS_get_u24(cbs, &out_hdr->msg_len) ||
465 !CBS_get_u16(cbs, &out_hdr->seq) ||
466 !CBS_get_u24(cbs, &out_hdr->frag_off) ||
467 !CBS_get_u24(cbs, &out_hdr->frag_len) ||
468 !CBS_get_bytes(cbs, out_body, out_hdr->frag_len)) {
666 CBS cbs, body;
668 CBS_init(&cbs, msg->data, msg->len);
669 if (!dtls1_parse_fragment(&cbs, &hdr, &body) ||
674 CBS_len(&cbs) != 0) {