buf->total_out += ret; }
void buffer_to_SSL(buffer_t *buf, SSL *ssl){	int ret;	if(!ssl || buffer_empty(buf))		return;	ret = SSL_write(ssl, buf->data, buf->used);	if(ret > 0)		buffer_takedata(buf, NULL, ret);	if(ret < 0)		int_ssl_check(ssl, ret);}