Lines Matching defs:frag_len
148 static hm_fragment *dtls1_hm_fragment_new(size_t frag_len, int reassembly) {
158 if (frag_len > 0) {
159 frag->fragment = OPENSSL_malloc(frag_len);
167 if (frag_len + 7 < frag_len) {
171 size_t bitmask_len = (frag_len + 7) / 8;
428 * |frag_len|. It returns one on success and zero on error.
432 static int dtls1_discard_fragment_body(SSL *ssl, size_t frag_len) {
434 while (frag_len > 0) {
435 size_t chunk = frag_len < sizeof(discard) ? frag_len : sizeof(discard);
440 frag_len -= chunk;
524 const size_t frag_len = msg_hdr.frag_len;
526 if (frag_off > msg_len || frag_off + frag_len < frag_off ||
527 frag_off + frag_len > msg_len ||
529 frag_len > ssl->s3->rrec.length) {
539 if (!dtls1_discard_fragment_body(ssl, frag_len)) {
553 if (!dtls1_discard_fragment_body(ssl, frag_len)) {
562 frag_len, 0);
563 if (ret != (int) frag_len) {
568 dtls1_hm_fragment_mark(frag, frag_off, frag_off + frag_len);
740 0, frag->msg_header.frag_len);
769 hm_fragment *frag = dtls1_hm_fragment_new(0 /* frag_len */,
812 frag->msg_header.frag_len = ssl->d1->w_msg_hdr.msg_len;
858 unsigned long frag_len) {
865 msg_hdr->frag_len = frag_len;
880 n2l3(data, msg_hdr->frag_len);