Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ InitializeSecurityContext() [4/4]

static System.Net.SecurityStatusPal System.Net.Security.NegotiateStreamPal.InitializeSecurityContext ( ref System::Net::Security::SafeFreeCredentials credentialsHandle,
ref System::Net::Security::SafeDeleteContext securityContext,
string spn,
System::Net::ContextFlagsPal requestedContextFlags,
byte[] incomingBlob,
ChannelBinding channelBinding,
ref byte[] resultBlob,
ref System::Net::ContextFlagsPal contextFlags )
inlinestaticpackage

Definition at line 42 of file NegotiateStreamPal.cs.

43 {
45 if (incomingBlob != null)
46 {
47 inputBuffers.SetNextBuffer(new System.Net.Security.InputSecurityBuffer(incomingBlob, System.Net.Security.SecurityBufferType.SECBUFFER_TOKEN));
48 }
49 if (channelBinding != null)
50 {
51 inputBuffers.SetNextBuffer(new System.Net.Security.InputSecurityBuffer(channelBinding));
52 }
53 System.Net.Security.SecurityBuffer outputBuffer = new System.Net.Security.SecurityBuffer(resultBlob, System.Net.Security.SecurityBufferType.SECBUFFER_TOKEN);
54 global::Interop.SspiCli.ContextFlags outFlags = global::Interop.SspiCli.ContextFlags.Zero;
56 global::Interop.SECURITY_STATUS win32SecurityStatus = (global::Interop.SECURITY_STATUS)System.Net.SSPIWrapper.InitializeSecurityContext(System.Net.GlobalSSPI.SSPIAuth, ref credentialsHandle, ref context, spn, System.Net.ContextFlagsAdapterPal.GetInteropFromContextFlagsPal(requestedContextFlags), global::Interop.SspiCli.Endianness.SECURITY_NETWORK_DREP, inputBuffers, ref outputBuffer, ref outFlags);
57 securityContext = context;
58 resultBlob = outputBuffer.token;
61 }
static System.Net.ContextFlagsPal GetContextFlagsPalFromInterop(global::Interop.SspiCli.ContextFlags win32Flags)
static global::Interop.SspiCli.ContextFlags GetInteropFromContextFlagsPal(System.Net.ContextFlagsPal flags)
static readonly System.Net.SSPIAuthType SSPIAuth
Definition GlobalSSPI.cs:5
static int InitializeSecurityContext(System.Net.ISSPIInterface secModule, ref System.Net.Security.SafeFreeCredentials credential, ref System.Net.Security.SafeDeleteSslContext context, string targetName, global::Interop.SspiCli.ContextFlags inFlags, global::Interop.SspiCli.Endianness datarep, System.Net.Security.InputSecurityBuffers inputBuffers, ref System.Net.Security.SecurityBuffer outputBuffer, ref global::Interop.SspiCli.ContextFlags outFlags)
static System.Net.SecurityStatusPal GetSecurityStatusPalFromInterop(global::Interop.SECURITY_STATUS win32SecurityStatus, bool attachException=false)
void SetNextBuffer(System.Net.Security.InputSecurityBuffer buffer)

References System.Net.ContextFlagsAdapterPal.GetContextFlagsPalFromInterop(), System.Net.ContextFlagsAdapterPal.GetInteropFromContextFlagsPal(), System.Net.SecurityStatusAdapterPal.GetSecurityStatusPalFromInterop(), System.Net.SSPIWrapper.InitializeSecurityContext(), System.Net.Security.InputSecurityBuffers.SetNextBuffer(), System.Net.GlobalSSPI.SSPIAuth, and System.Net.Security.SecurityBuffer.token.