Home | History | Annotate | Download | only in ssl

Lines Matching defs:cbs

336   CBS cbs;
337 CBS_init(&cbs, rr->data, rr->length);
339 while (CBS_len(&cbs) > 0) {
342 CBS body;
343 if (!dtls1_parse_fragment(&cbs, &msg_hdr, &body)) {
431 void dtls1_get_current_message(const SSL *ssl, CBS *out) {
476 int dtls1_parse_fragment(CBS *cbs, struct hm_header_st *out_hdr,
477 CBS *out_body) {
480 if (!CBS_get_u8(cbs, &out_hdr->type) ||
481 !CBS_get_u24(cbs, &out_hdr->msg_len) ||
482 !CBS_get_u16(cbs, &out_hdr->seq) ||
483 !CBS_get_u24(cbs, &out_hdr->frag_off) ||
484 !CBS_get_u24(cbs, &out_hdr->frag_len) ||
485 !CBS_get_bytes(cbs, out_body, out_hdr->frag_len)) {
657 CBS cbs, body;
659 CBS_init(&cbs, msg->data, msg->len);
660 if (!dtls1_parse_fragment(&cbs, &hdr, &body) ||
665 CBS_len(&cbs) != 0) {