if(ret > 0)
if(ret > 0) {
void buffer_to_BIO(buffer_t *buf, BIO *bio){	int ret;	if(!bio || buffer_empty(buf))		return;	ret = BIO_write(bio, buf->data, buf->used);	if(ret > 0)		buffer_takedata(buf, NULL, ret);}