Lines Matching refs:wr
1468 SSL3_RECORD *wr;
1493 wr= &(s->s3->wrec);
1547 wr->type=type;
1567 wr->data=p + bs; /* make room for IV in case of CBC */
1568 wr->length=(int)len;
1569 wr->input=(unsigned char *)buf;
1571 /* we now 'read' from wr->input, wr->length bytes into
1572 * wr->data */
1585 memcpy(wr->data,wr->input,wr->length);
1586 wr->input=wr->data;
1589 /* we should still have the output to wr->data and the input
1590 * from wr->input. Length should be wr->length.
1591 * wr->data still points in the wb->buf */
1595 if(s->method->ssl3_enc->mac(s,&(p[wr->length + bs]),1) < 0)
1597 wr->length+=mac_size;
1601 wr->input=p;
1602 wr->data=p;
1611 wr->length += bs;
1630 s2n(wr->length,pseq);
1633 * wr->data pointing to the encrypted data, which is
1634 * wr->length long */
1635 wr->type=type; /* not needed but helps for debugging */
1636 wr->length+=DTLS1_RT_HEADER_LENGTH;
1641 dtls1_buffer_record(s, wr->data, wr->length,
1652 return wr->length;
1656 wb->left = prefix_len + wr->length;