Home | History | Annotate | Download | only in ssl

Lines Matching refs:wr

1469 	SSL3_RECORD *wr;
1505 wr= &(s->s3->wrec);
1559 wr->type=type;
1579 wr->data=p + bs; /* make room for IV in case of CBC */
1580 wr->length=(int)len;
1581 wr->input=(unsigned char *)buf;
1583 /* we now 'read' from wr->input, wr->length bytes into
1584 * wr->data */
1597 memcpy(wr->data,wr->input,wr->length);
1598 wr->input=wr->data;
1601 /* we should still have the output to wr->data and the input
1602 * from wr->input. Length should be wr->length.
1603 * wr->data still points in the wb->buf */
1607 if(s->method->ssl3_enc->mac(s,&(p[wr->length + bs]),1) < 0)
1609 wr->length+=mac_size;
1613 wr->input=p;
1614 wr->data=p;
1623 wr->length += bs;
1642 s2n(wr->length,pseq);
1645 * wr->data pointing to the encrypted data, which is
1646 * wr->length long */
1647 wr->type=type; /* not needed but helps for debugging */
1648 wr->length+=DTLS1_RT_HEADER_LENGTH;
1653 dtls1_buffer_record(s, wr->data, wr->length,
1664 return wr->length;
1668 wb->left = prefix_len + wr->length;