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

◆ AcceptSecurityContext() [4/4]

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

Definition at line 72 of file NegotiateStreamPal.cs.

73 {
75 if (incomingBlob != null)
76 {
77 inputBuffers.SetNextBuffer(new System.Net.Security.InputSecurityBuffer(incomingBlob, System.Net.Security.SecurityBufferType.SECBUFFER_TOKEN));
78 }
79 if (channelBinding != null)
80 {
81 inputBuffers.SetNextBuffer(new System.Net.Security.InputSecurityBuffer(channelBinding));
82 }
83 System.Net.Security.SecurityBuffer outputBuffer = new System.Net.Security.SecurityBuffer(resultBlob, System.Net.Security.SecurityBufferType.SECBUFFER_TOKEN);
84 global::Interop.SspiCli.ContextFlags outFlags = global::Interop.SspiCli.ContextFlags.Zero;
86 global::Interop.SECURITY_STATUS win32SecurityStatus = (global::Interop.SECURITY_STATUS)System.Net.SSPIWrapper.AcceptSecurityContext(System.Net.GlobalSSPI.SSPIAuth, credentialsHandle, ref context, System.Net.ContextFlagsAdapterPal.GetInteropFromContextFlagsPal(requestedContextFlags), global::Interop.SspiCli.Endianness.SECURITY_NETWORK_DREP, inputBuffers, ref outputBuffer, ref outFlags);
87 resultBlob = outputBuffer.token;
88 securityContext = context;
91 }
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 AcceptSecurityContext(System.Net.ISSPIInterface secModule, System.Net.Security.SafeFreeCredentials credential, ref System.Net.Security.SafeDeleteSslContext context, 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.SSPIWrapper.AcceptSecurityContext(), System.Net.ContextFlagsAdapterPal.GetContextFlagsPalFromInterop(), System.Net.ContextFlagsAdapterPal.GetInteropFromContextFlagsPal(), System.Net.SecurityStatusAdapterPal.GetSecurityStatusPalFromInterop(), System.Net.Security.InputSecurityBuffers.SetNextBuffer(), System.Net.GlobalSSPI.SSPIAuth, and System.Net.Security.SecurityBuffer.token.