Lines Matching defs:buf
95 BUF_MEM *buf = NULL;
107 && BIO_get_mem_ptr(out, &buf) > 0) {
111 if (*pdata_len < buf->length)
113 * It's tempting to do |*pdata_len = (size_t)buf->length|
119 *pdata_len -= buf->length;
122 *pdata_len = (size_t)buf->length;
128 memcpy(*pdata, buf->data, buf->length);
129 *pdata += buf->length;
132 *pdata = (unsigned char *)buf->data;
133 buf->data = NULL;
662 BUF_MEM *buf;
664 BIO_get_mem_ptr(allocated_out, &buf);
665 data->running_output = (unsigned char *)buf->data;
666 data->running_output_length = buf->length;
667 memset(buf, 0, sizeof(*buf));