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

◆ AcquireCredentialsHandle() [1/3]

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

Definition at line 383 of file SslStreamPal.cs.

384 {
385 try
386 {
387 return WindowsIdentity.RunImpersonated(SafeAccessTokenHandle.InvalidHandle, () => SSPIWrapper.AcquireCredentialsHandle(GlobalSSPI.SSPISecureChannel, "Microsoft Unified Security Protocol Provider", credUsage, secureCredential));
388 }
389 catch
390 {
391 return SSPIWrapper.AcquireCredentialsHandle(GlobalSSPI.SSPISecureChannel, "Microsoft Unified Security Protocol Provider", credUsage, secureCredential);
392 }
393 }
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.