Lines Matching defs:bufs
480 SecBuffer bufs[4];
501 os_memset(&bufs, 0, sizeof(bufs));
502 bufs[0].pvBuffer = wpabuf_put(out, sizes.cbHeader);
503 bufs[0].cbBuffer = sizes.cbHeader;
504 bufs[0].BufferType = SECBUFFER_STREAM_HEADER;
506 bufs[1].pvBuffer = wpabuf_put(out, 0);
508 bufs[1].cbBuffer = wpabuf_len(in_data);
509 bufs[1].BufferType = SECBUFFER_DATA;
511 bufs[2].pvBuffer = wpabuf_put(out, sizes.cbTrailer);
512 bufs[2].cbBuffer = sizes.cbTrailer;
513 bufs[2].BufferType = SECBUFFER_STREAM_TRAILER;
517 buf.pBuffers = bufs;
525 (int) bufs[0].cbBuffer, (int) bufs[0].BufferType,
526 (int) bufs[1].cbBuffer, (int) bufs[1].BufferType,
527 (int) bufs[2].cbBuffer, (int) bufs[2].BufferType);
529 "out_data=%p bufs %p %p %p",
530 wpabuf_head(out), bufs[0].pvBuffer, bufs[1].pvBuffer,
531 bufs[2].pvBuffer);
534 if (bufs[i].pvBuffer && bufs[i].BufferType != SECBUFFER_EMPTY)
536 wpa_hexdump(MSG_MSGDUMP, "SChannel: bufs",
537 bufs[i].pvBuffer, bufs[i].cbBuffer);
562 SecBuffer bufs[4];
568 os_memset(&bufs, 0, sizeof(bufs));
572 bufs[0].pvBuffer = wpabuf_mhead(tmp);
573 bufs[0].cbBuffer = wpabuf_len(in_data);
574 bufs[0].BufferType = SECBUFFER_DATA;
576 bufs[1].BufferType = SECBUFFER_EMPTY;
577 bufs[2].BufferType = SECBUFFER_EMPTY;
578 bufs[3].BufferType = SECBUFFER_EMPTY;
582 buf.pBuffers = bufs;
590 (int) bufs[0].cbBuffer, (int) bufs[0].BufferType,
591 (int) bufs[1].cbBuffer, (int) bufs[1].BufferType,
592 (int) bufs[2].cbBuffer, (int) bufs[2].BufferType,
593 (int) bufs[3].cbBuffer, (int) bufs[3].BufferType);
595 "out_data=%p bufs %p %p %p %p",
596 wpabuf_head(tmp), bufs[0].pvBuffer, bufs[1].pvBuffer,
597 bufs[2].pvBuffer, bufs[3].pvBuffer);
607 if (bufs[i].BufferType == SECBUFFER_DATA)
618 bufs[i].pvBuffer, bufs[i].cbBuffer);
619 out = wpabuf_alloc_copy(bufs[i].pvBuffer, bufs[i].cbBuffer);