if (rp != NULL) s->s3->rbuf.buf=rp; if (wp != NULL) s->s3->wbuf.buf=wp;
s->s3->rbuf.buf = rp; s->s3->wbuf.buf = wp; s->s3->rbuf.len = rlen; s->s3->wbuf.len = wlen;
void ssl3_clear(SSL *s)	{	unsigned char *rp,*wp;	ssl3_cleanup_key_block(s);	if (s->s3->tmp.ca_names != NULL)		sk_X509_NAME_pop_free(s->s3->tmp.ca_names,X509_NAME_free);	if (s->s3->rrec.comp != NULL)		{		OPENSSL_free(s->s3->rrec.comp);		s->s3->rrec.comp=NULL;		}#ifndef OPENSSL_NO_DH	if (s->s3->tmp.dh != NULL)		DH_free(s->s3->tmp.dh);#endif	rp=s->s3->rbuf.buf;	wp=s->s3->wbuf.buf;	EVP_MD_CTX_cleanup(&s->s3->finish_dgst1);	EVP_MD_CTX_cleanup(&s->s3->finish_dgst2);	memset(s->s3,0,sizeof *s->s3);	if (rp != NULL) s->s3->rbuf.buf=rp;	if (wp != NULL) s->s3->wbuf.buf=wp;	ssl_free_wbio_buffer(s);	s->packet_length=0;	s->s3->renegotiate=0;	s->s3->total_renegotiations=0;	s->s3->num_renegotiations=0;	s->s3->in_read_app_data=0;	s->version=SSL3_VERSION;	}