Home | History | Annotate | Download | only in ssl

Lines Matching defs:frag_len

163 	unsigned long frag_len);
168 unsigned long frag_len);
173 dtls1_hm_fragment_new(unsigned long frag_len, int reassembly)
183 if (frag_len)
185 buf = (unsigned char *)OPENSSL_malloc(frag_len);
199 bitmask = (unsigned char *)OPENSSL_malloc(RSMBLY_BITMASK_SIZE(frag_len));
206 memset(bitmask, 0, RSMBLY_BITMASK_SIZE(frag_len));
488 size_t frag_off,frag_len,msg_len;
492 frag_len = msg_hdr->frag_len;
495 if ( (frag_off+frag_len) > msg_len)
501 if ( (frag_off+frag_len) > (unsigned long)max)
560 unsigned long frag_len = frag->msg_header.frag_len;
569 frag->fragment,frag->msg_header.frag_len);
578 return frag_len;
608 unsigned long frag_len = msg_hdr->frag_len;
610 if ((msg_hdr->frag_off+frag_len) > msg_hdr->msg_len ||
614 if (frag_len == 0)
629 frag->msg_header.frag_len = frag->msg_header.msg_len;
652 while (frag_len)
656 frag_len>sizeof(devnull)?sizeof(devnull):frag_len,0);
658 frag_len -= i;
665 frag->fragment + msg_hdr->frag_off,frag_len,0);
666 if ((unsigned long)i!=frag_len)
672 (long)(msg_hdr->frag_off + frag_len));
716 unsigned long frag_len = msg_hdr->frag_len;
718 if ((msg_hdr->frag_off+frag_len) > msg_hdr->msg_len)
730 if (item != NULL && frag_len != msg_hdr->msg_len)
744 while (frag_len)
748 frag_len>sizeof(devnull)?sizeof(devnull):frag_len,0);
750 frag_len -= i;
755 if (frag_len != msg_hdr->msg_len)
758 if (frag_len > dtls1_max_handshake_message_len(s))
761 frag = dtls1_hm_fragment_new(frag_len, 0);
767 if (frag_len)
771 frag->fragment,frag_len,0);
772 if ((unsigned long)i!=frag_len)
786 * |frag_len| != |msg_hdr->msg_len| in which case |item| is set
806 unsigned long len, frag_off, frag_len;
812 if ((frag_len = dtls1_retrieve_buffered_fragment(s,max,ok)) || *ok)
814 if (*ok) s->init_num = frag_len;
815 return frag_len;
849 frag_len = msg_hdr.frag_len;
851 if (frag_len && frag_len < len)
885 if ( frag_len > 0)
890 &p[frag_off],frag_len,0);
904 if (i != (int)frag_len)
917 s->init_num = frag_len;
918 return frag_len;
1217 frag->msg_header.frag_len = s->d1->w_msg_hdr.msg_len;
1295 frag->msg_header.frag_len);
1359 unsigned long len, unsigned long frag_off, unsigned long frag_len)
1369 frag_off, frag_len);
1379 unsigned long frag_len)
1387 msg_hdr->frag_len = frag_len;
1392 unsigned long frag_len)
1397 msg_hdr->frag_len = frag_len;
1410 l2n3(msg_hdr->frag_len, p);
1446 n2l3(data, msg_hdr->frag_len);