return(-1);
return -1;
int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len)	{	const unsigned char *buf=buf_;	unsigned int tot,n,nw;	int i;	s->rwstate=SSL_NOTHING;	tot=s->s3->wnum;	s->s3->wnum=0;	if (SSL_in_init(s) && !s->in_handshake)		{		i=s->handshake_func(s);		if (i < 0) return(i);		if (i == 0)			{			SSLerr(SSL_F_SSL3_WRITE_BYTES,SSL_R_SSL_HANDSHAKE_FAILURE);			return(-1);			}		}	n=(len-tot);	for (;;)		{		if (n > SSL3_RT_MAX_PLAIN_LENGTH)			nw=SSL3_RT_MAX_PLAIN_LENGTH;		else			nw=n;		i=do_ssl3_write(s,type,&(buf[tot]),nw);		if (i <= 0)			{			s->s3->wnum=tot;			return(i);			}		if ((i == (int)n) ||			(type == SSL3_RT_APPLICATION_DATA &&			 (s->mode & SSL_MODE_ENABLE_PARTIAL_WRITE)))			{			return(tot+i);			}		n-=i;		tot+=i;		}	}