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

◆ QueryContextConnectionInfo()

static void System.Net.Security.SslStreamPal.QueryContextConnectionInfo ( SafeDeleteContext securityContext,
out SslConnectionInfo connectionInfo )
inlinestatic

Definition at line 312 of file SslStreamPal.cs.

313 {
314 SecPkgContext_ConnectionInfo attribute = default(SecPkgContext_ConnectionInfo);
315 bool flag = SSPIWrapper.QueryBlittableContextAttributes(GlobalSSPI.SSPISecureChannel, securityContext, global::Interop.SspiCli.ContextAttribute.SECPKG_ATTR_CONNECTION_INFO, ref attribute);
316 TlsCipherSuite cipherSuite = TlsCipherSuite.TLS_NULL_WITH_NULL_NULL;
317 SecPkgContext_CipherInfo attribute2 = default(SecPkgContext_CipherInfo);
318 if (SSPIWrapper.QueryBlittableContextAttributes(GlobalSSPI.SSPISecureChannel, securityContext, global::Interop.SspiCli.ContextAttribute.SECPKG_ATTR_CIPHER_INFO, ref attribute2))
319 {
320 cipherSuite = (TlsCipherSuite)attribute2.dwCipherSuite;
321 }
322 connectionInfo = new SslConnectionInfo(attribute, cipherSuite);
323 }

References System.Net.GlobalSSPI.SSPISecureChannel.

Referenced by System.Net.Security.SecureChannel.ProcessHandshakeSuccess().