Lines Matching defs:cur_reclen
1355 int cur_reclen;
1378 cur_reclen = mp->b_wptr - mp->b_rptr - SSL3_HDR_LEN;
1379 ASSERT(cur_reclen == reclen);
1381 ASSERT(mss > cur_reclen + SSL3_HDR_LEN);
1382 ASSERT(cur_reclen < SSL3_MAX_RECORD_LENGTH); /* XXX */
1384 copylen = mss - (cur_reclen + SSL3_HDR_LEN);
1387 copylen = MIN(copylen, SSL3_MAX_RECORD_LENGTH - cur_reclen);
1396 cur_reclen += copylen;
1401 if (cur_reclen == SSL3_MAX_RECORD_LENGTH) {
1402 cur_reclen = 0;
1405 copylen = MIN(copylen, SSL3_MAX_RECORD_LENGTH - cur_reclen);
1414 if (cur_reclen == 0) {
1418 cur_reclen = MIN(len, reclen);
1419 mp->b_wptr[3] = (cur_reclen >> 8) & 0xff;
1420 mp->b_wptr[4] = (cur_reclen) & 0xff;
1422 cur_reclen = 0;
1429 cur_reclen = MIN(reclen + cert_len, SSL3_MAX_RECORD_LENGTH);
1430 mp->b_rptr[3] = (cur_reclen >> 8) & 0xff;
1431 mp->b_rptr[4] = (cur_reclen) & 0xff;