Home | History | Annotate | Download | only in ssl

Lines Matching refs:wr

561 	SSL3_RECORD *wr;
563 wr= &(ssl->s3->wrec);
564 i=COMP_compress_block(ssl->compress,wr->data,
566 wr->input,(int)wr->length);
570 wr->length=i;
572 wr->input=wr->data;
640 SSL3_RECORD *wr;
665 wr= &(s->s3->wrec);
744 wr->type=type;
780 wr->data=p + eivlen;
781 wr->length=(int)len;
782 wr->input=(unsigned char *)buf;
784 /* we now 'read' from wr->input, wr->length bytes into
785 * wr->data */
798 memcpy(wr->data,wr->input,wr->length);
799 wr->input=wr->data;
802 /* we should still have the output to wr->data and the input
803 * from wr->input. Length should be wr->length.
804 * wr->data still points in the wb->buf */
808 if (s->method->ssl3_enc->mac(s,&(p[wr->length + eivlen]),1) < 0)
810 wr->length+=mac_size;
813 wr->input=p;
814 wr->data=p;
820 wr->length += eivlen;
827 s2n(wr->length,plen);
830 * wr->data pointing to the encrypted data, which is
831 * wr->length long */
832 wr->type=type; /* not needed but helps for debugging */
833 wr->length+=SSL3_RT_HEADER_LENGTH;
840 return wr->length;
844 wb->left = prefix_len + wr->length;