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

◆ AcquireCredentialsHandle() [2/3]

static unsafe SafeFreeCredentials System.Net.Security.SslStreamPal.AcquireCredentialsHandle ( global::Interop::SspiCli::CredentialUse credUsage,
global::Interop::SspiCli::SCHANNEL_CRED * secureCredential )
inlinestaticprivate

Definition at line 371 of file SslStreamPal.cs.

372 {
373 try
374 {
375 return WindowsIdentity.RunImpersonated(SafeAccessTokenHandle.InvalidHandle, () => SSPIWrapper.AcquireCredentialsHandle(GlobalSSPI.SSPISecureChannel, "Microsoft Unified Security Protocol Provider", credUsage, secureCredential));
376 }
377 catch
378 {
379 return SSPIWrapper.AcquireCredentialsHandle(GlobalSSPI.SSPISecureChannel, "Microsoft Unified Security Protocol Provider", credUsage, secureCredential);
380 }
381 }
static void RunImpersonated(SafeAccessTokenHandle safeAccessTokenHandle, Action action)

References System.Net.SSPIWrapper.AcquireCredentialsHandle(), Microsoft.Win32.SafeHandles.SafeAccessTokenHandle.InvalidHandle, System.Security.Principal.WindowsIdentity.RunImpersonated(), and System.Net.GlobalSSPI.SSPISecureChannel.