Lines Matching refs:sendBuf
2399 if (!ss->sec.ci.sendBuf.buf || !ss->sec.ci.sendBuf.len) in ssl3_FlushHandshake()
2408 rv = ssl3_SendRecord(ss, content_handshake, ss->sec.ci.sendBuf.buf, in ssl3_FlushHandshake()
2409 ss->sec.ci.sendBuf.len, flags); in ssl3_FlushHandshake()
2417 } else if (rv < ss->sec.ci.sendBuf.len) { in ssl3_FlushHandshake()
2419 PORT_Assert(rv >= ss->sec.ci.sendBuf.len); in ssl3_FlushHandshake()
2427 ss->sec.ci.sendBuf.len = 0; in ssl3_FlushHandshake()
3204 int room = ss->sec.ci.sendBuf.space - ss->sec.ci.sendBuf.len; in ssl3_AppendHandshake()
3209 if (ss->sec.ci.sendBuf.space < MAX_SEND_BUF_LENGTH && room < bytes) { in ssl3_AppendHandshake()
3210 rv = sslBuffer_Grow(&ss->sec.ci.sendBuf, PR_MAX(MIN_SEND_BUF_LENGTH, in ssl3_AppendHandshake()
3211 PR_MIN(MAX_SEND_BUF_LENGTH, ss->sec.ci.sendBuf.len + bytes))); in ssl3_AppendHandshake()
3214 room = ss->sec.ci.sendBuf.space - ss->sec.ci.sendBuf.len; in ssl3_AppendHandshake()
3224 PORT_Memcpy(ss->sec.ci.sendBuf.buf + ss->sec.ci.sendBuf.len, src, in ssl3_AppendHandshake()
3226 ss->sec.ci.sendBuf.len += room; in ssl3_AppendHandshake()
3233 room = ss->sec.ci.sendBuf.space; in ssl3_AppendHandshake()
3234 PORT_Assert(ss->sec.ci.sendBuf.len == 0); in ssl3_AppendHandshake()
3236 PORT_Memcpy(ss->sec.ci.sendBuf.buf + ss->sec.ci.sendBuf.len, src, bytes); in ssl3_AppendHandshake()
3237 ss->sec.ci.sendBuf.len += bytes; in ssl3_AppendHandshake()