<div class="content" name="DRS_SecBuffer" uuid="a5ad6879-cf0c-411c-96c3-2eb7ea37149c"><p>DRS_SecBuffer is a <span><a href="e5c2026b-f732-4c9d-9d60-b945c0ab54eb#gt_cd539538-9f7e-4881-b5af-2301b420244d" data-linktype="relative-path">concrete type</a></span> for a
buffer that contains <span><a href="e5c2026b-f732-4c9d-9d60-b945c0ab54eb#gt_8e961bf0-95ba-4f58-9034-b67ccb27f317" data-linktype="relative-path">authentication</a></span> data.</p><dl>
<dd>
<div><pre> typedef struct {
   [range(0,10000)] unsigned long cbBuffer;
   unsigned long BufferType;
   [size_is(cbBuffer)] BYTE* pvBuffer;
 } DRS_SecBuffer;
</pre></div>
</dd></dl><p><b>cbBuffer:</b>  The size, in bytes, of
the pvBuffer array.</p><p><b>BufferType:</b>  A bit field, presented
in little-endian byte order, that contains the following values:</p><dl>
<dd>
<table>
 <tbody><tr>
  <th><p><br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>1<br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>2<br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>3<br/>0</p></th>
  <th><p><br/>1</p></th>
 </tr>
 <tr>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>T Y P</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>R O</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
 </tr>
</tbody></table>
</dd>
<dd>
<p><b>X:</b> Unused. MUST be zero and ignored.</p>
</dd>
<dd>
<p><b>TYP:</b> Can be one of the following values:</p>
<dl>
<dd>
<dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>SECBUFFER_EMPTY 0x00000000</td>
  <td>A placeholder in the buffer array. The caller can supply several such entries in the array, and the security package can return data in them.</td>
 </tr><tr>
  <td>SECBUFFER_DATA 0x00000001</td>
  <td>Used for common data. The security package can read this data and write it, for example, to encrypt some or all of it.</td>
 </tr><tr>
  <td>SECBUFFER_TOKEN 0x00000002</td>
  <td>This buffer is used to indicate the security token portion of the message. This is read-only for input parameters or read/write for output parameters.</td>
 </tr><tr>
  <td>SECBUFFER_PKG_PARAMS 0x00000003</td>
  <td>These are transport-to-package–specific parameters. For example, the Netware redirector can supply the server object identifier, while DCE RPC can supply an association UUID, and so on.</td>
 </tr><tr>
  <td>SECBUFFER_MISSING 0x00000004</td>
  <td>The security package uses this value to indicate the number of missing bytes in a particular message. The pvBuffer member is ignored in this type.</td>
 </tr><tr>
  <td>SECBUFFER_EXTRA 0x00000005</td>
  <td>The security package uses this value to indicate the number of extra or unprocessed bytes in a message.</td>
 </tr><tr>
  <td>SECBUFFER_STREAM_TRAILER 0x00000006</td>
  <td>Indicates a protocol-specific trailer for a particular record.</td>
 </tr><tr>
  <td>SECBUFFER_STREAM_HEADER 0x00000007</td>
  <td>Indicates a protocol-specific header for a particular record.</td>
 </tr></tbody></table>
</dd></dl></dd></dl></dd>
<dd>
<p><b>RO (SECBUFFER_READONLY, 0x80000000):</b> The
buffer is read-only. This flag is intended for sending header data to the
security package for <span><a href="e5c2026b-f732-4c9d-9d60-b945c0ab54eb#gt_fa444149-ef93-4512-a278-2e756295630c" data-linktype="relative-path">checksumming</a></span>. The
package can read this buffer but cannot modify it.</p>
</dd></dl><p><b>pvBuffer:</b>  Authentication data.</p></div>