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

◆ GetNegotiatedApplicationProtocol()

static byte[] System.Net.Security.SslStreamPal.GetNegotiatedApplicationProtocol ( SafeDeleteContext context)
inlinestaticpackage

Definition at line 187 of file SslStreamPal.cs.

188 {
189 global::Interop.SecPkgContext_ApplicationProtocol attribute = default(global::Interop.SecPkgContext_ApplicationProtocol);
190 if (SSPIWrapper.QueryBlittableContextAttributes(GlobalSSPI.SSPISecureChannel, context, global::Interop.SspiCli.ContextAttribute.SECPKG_ATTR_APPLICATION_PROTOCOL, ref attribute) && attribute.ProtoNegoExt == global::Interop.ApplicationProtocolNegotiationExt.ALPN && attribute.ProtoNegoStatus == global::Interop.ApplicationProtocolNegotiationStatus.Success)
191 {
192 return attribute.Protocol;
193 }
194 return null;
195 }

References System.Net.GlobalSSPI.SSPISecureChannel.

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