246 {
248 {
249 global::Interop.SspiCli.SecBuffer*
ptr =
stackalloc global::Interop.SspiCli.SecBuffer[4];
250 global::Interop.SspiCli.SecBuffer*
ptr2 =
ptr;
251 ptr2->BufferType = SecurityBufferType.SECBUFFER_DATA;
254 for (
int i = 1;
i < 4;
i++)
255 {
256 global::Interop.SspiCli.SecBuffer*
ptr4 =
ptr +
i;
257 ptr4->BufferType = SecurityBufferType.SECBUFFER_EMPTY;
260 }
261 global::Interop.SspiCli.SecBufferDesc
secBufferDesc =
new global::Interop.SspiCli.SecBufferDesc(4);
262 secBufferDesc.pBuffers =
ptr;
267 for (
int j = 0;
j < 4;
j++)
268 {
269 if ((
sECURITY_STATUS == global::Interop.SECURITY_STATUS.OK &&
ptr[
j].BufferType == SecurityBufferType.SECBUFFER_DATA) || (
sECURITY_STATUS != 0 &&
ptr[
j].BufferType == SecurityBufferType.SECBUFFER_EXTRA))
270 {
273 break;
274 }
275 }
276 return SecurityStatusAdapterPal.GetSecurityStatusPalFromInterop(
sECURITY_STATUS);
277 }
278 }