Home | History | Annotate | Download | only in ssl

Lines Matching defs:wr

562 	SSL3_RECORD *wr;
564 wr= &(ssl->s3->wrec);
565 i=COMP_compress_block(ssl->compress,wr->data,
567 wr->input,(int)wr->length);
571 wr->length=i;
573 wr->input=wr->data;
684 SSL3_RECORD *wr;
710 wr= &(s->s3->wrec);
775 wr->type=type;
811 wr->data=p + eivlen;
812 wr->length=(int)(len - (fragment != 0));
813 wr->input=(unsigned char *)buf + (fragment != 0);
815 /* we now 'read' from wr->input, wr->length bytes into
816 * wr->data */
829 memcpy(wr->data,wr->input,wr->length);
830 wr->input=wr->data;
833 /* we should still have the output to wr->data and the input
834 * from wr->input. Length should be wr->length.
835 * wr->data still points in the wb->buf */
839 if (s->method->ssl3_enc->mac(s,&(p[wr->length + eivlen]),1) < 0)
841 wr->length+=mac_size;
844 wr->input=p;
845 wr->data=p;
851 wr->length += eivlen;
858 s2n(wr->length,plen);
861 * wr->data pointing to the encrypted data, which is
862 * wr->length long */
863 wr->type=type; /* not needed but helps for debugging */
864 wr->length+=SSL3_RT_HEADER_LENGTH;
870 return wr->length;
874 wb->left = prefix_len + wr->length;