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

◆ QueryContextAuthenticationPackage() [2/2]

static string System.Net.Security.NegotiateStreamPal.QueryContextAuthenticationPackage ( System::Net::Security::SafeDeleteContext securityContext)
inlinestaticpackage

Definition at line 46 of file NegotiateStreamPal.cs.

47 {
49 SafeHandle sspiHandle;
50 bool flag = System.Net.SSPIWrapper.QueryBlittableContextAttributes(System.Net.GlobalSSPI.SSPIAuth, securityContext, global::Interop.SspiCli.ContextAttribute.SECPKG_ATTR_NEGOTIATION_INFO, typeof(System.Net.Security.SafeFreeContextBuffer), out sspiHandle, ref attribute);
51 using (sspiHandle)
52 {
53 return flag ? System.Net.NegotiationInfoClass.GetAuthenticationPackageName(sspiHandle, (int)attribute.NegotiationState) : null;
54 }
55 }
static readonly System.Net.SSPIAuthType SSPIAuth
Definition GlobalSSPI.cs:5
static unsafe string GetAuthenticationPackageName(SafeHandle safeHandle, int negotiationState)

References System.Net.NegotiationInfoClass.GetAuthenticationPackageName(), System.Net.SecPkgContext_NegotiationInfoW.NegotiationState, and System.Net.GlobalSSPI.SSPIAuth.