12 writes to token
System (12)
net\System\Net\_NTAuthentication.cs (2)
717
outSecurityBuffer.
token
= null;
889
outSecurityBuffer.
token
= null;
net\System\Net\_SafeNetHandles.cs (4)
1609
outSecBuffer.
token
= new byte[outSecBuffer.size];
1614
outSecBuffer.
token
= null;
1927
outSecBuffer.
token
= new byte[outSecBuffer.size];
1932
outSecBuffer.
token
= null;
net\System\Net\_SSPIWrapper.cs (3)
441
iBuffer.
token
= null;
459
iBuffer.
token
= buffers[j];
469
iBuffer.
token
= null;
net\System\Net\Internal.cs (3)
1469
this.
token
= size == 0 ? null : data;
1475
this.
token
= size == 0 ? null : data;
1483
this.
token
= size == 0 ? null : new byte[size];
39 references to token
System (39)
net\System\Net\_NTAuthentication.cs (3)
781
return outSecurityBuffer.
token
;
935
GlobalLog.Dump(outSecurityBuffer.
token
);
938
byte[] decodedOutgoingBlob = outSecurityBuffer.
token
;
net\System\Net\_SafeNetHandles.cs (26)
1508
pinnedOutBytes = GCHandle.Alloc(outSecBuffer.
token
, GCHandleType.Pinned);
1532
else if (securityBuffer.
token
== null || securityBuffer.
token
.Length == 0)
1538
pinnedInBytes[index] = GCHandle.Alloc(securityBuffer.
token
, GCHandleType.Pinned);
1539
inUnmanagedBuffer[index].token = Marshal.UnsafeAddrOfPinnedArrayElement(securityBuffer.
token
, securityBuffer.offset);
1555
if (outSecBuffer.
token
== null || outSecBuffer.
token
.Length == 0)
1558
outUnmanagedBuffer[0].token = Marshal.UnsafeAddrOfPinnedArrayElement(outSecBuffer.
token
, outSecBuffer.offset);
1610
Marshal.Copy(outUnmanagedBuffer[0].token, outSecBuffer.
token
, 0, outSecBuffer.size);
1833
pinnedOutBytes = GCHandle.Alloc(outSecBuffer.
token
, GCHandleType.Pinned);
1857
else if (securityBuffer.
token
== null || securityBuffer.
token
.Length == 0)
1863
pinnedInBytes[index] = GCHandle.Alloc(securityBuffer.
token
, GCHandleType.Pinned);
1864
inUnmanagedBuffer[index].token = Marshal.UnsafeAddrOfPinnedArrayElement(securityBuffer.
token
, securityBuffer.offset);
1881
if (outSecBuffer.
token
== null || outSecBuffer.
token
.Length == 0)
1884
outUnmanagedBuffer[0].token = Marshal.UnsafeAddrOfPinnedArrayElement(outSecBuffer.
token
, outSecBuffer.offset);
1928
Marshal.Copy(outUnmanagedBuffer[0].token, outSecBuffer.
token
, 0, outSecBuffer.size);
2116
else if (securityBuffer.
token
==null || securityBuffer.
token
.Length==0) {
2120
pinnedInBytes[index] = GCHandle.Alloc(securityBuffer.
token
, GCHandleType.Pinned);
2121
inUnmanagedBuffer[index].token = Marshal.UnsafeAddrOfPinnedArrayElement(securityBuffer.
token
, securityBuffer.offset);
2230
else if (securityBuffer.
token
== null || securityBuffer.
token
.Length == 0)
2236
pinnedInBytes[index] = GCHandle.Alloc(securityBuffer.
token
, GCHandleType.Pinned);
2237
inUnmanagedBuffer[index].token = Marshal.UnsafeAddrOfPinnedArrayElement(securityBuffer.
token
, securityBuffer.offset);
net\System\Net\_SecureChannel.cs (1)
1060
output = outgoingSecurity.
token
;
net\System\Net\_SSPIWrapper.cs (9)
396
if (iBuffer.
token
== null || iBuffer.
token
.Length == 0)
402
pinnedBuffers[i] = GCHandle.Alloc(iBuffer.
token
, GCHandleType.Pinned);
403
unmanagedBuffer[i].token = Marshal.UnsafeAddrOfPinnedArrayElement(iBuffer.
token
, iBuffer.offset);
404
buffers[i] = iBuffer.
token
;
474
GlobalLog.Assert(iBuffer.offset >= 0 && iBuffer.offset <= (iBuffer.
token
== null ? 0 : iBuffer.
token
.Length), "SSPIWrapper::EncryptDecryptHelper|'offset' out of range. [{0}]", iBuffer.offset);
475
GlobalLog.Assert(iBuffer.size >= 0 && iBuffer.size <= (iBuffer.
token
== null ? 0 : iBuffer.
token
.Length - iBuffer.offset), "SSPIWrapper::EncryptDecryptHelper|'size' out of range. [{0}]", iBuffer.size);