20 references to Protocol
InMemory.FunctionalTests (1)
Http2\TlsTests.cs (1)
45Assert.Equal(tlsFeature.ApplicationProtocol, SslApplicationProtocol.Http2.Protocol);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\TlsConnectionFeature.cs (1)
47public ReadOnlyMemory<byte> ApplicationProtocol => _sslStream.NegotiatedApplicationProtocol.Protocol;
Sockets.FunctionalTests (2)
src\Servers\Kestrel\test\FunctionalTests\Http2\HandshakeTests.cs (2)
73Assert.True(SslApplicationProtocol.Http2.Protocol.Span.SequenceEqual(tlsFeature.ApplicationProtocol.Span), 101Assert.True(SslApplicationProtocol.Http2.Protocol.Span.SequenceEqual(tlsFeature.ApplicationProtocol.Span),
System.Net.Quic (3)
System\Net\Quic\Internal\MsQuicConfiguration.Cache.cs (1)
123hash.AddBytes(protocol.Protocol.Span);
System\Net\Quic\Internal\MsQuicConfiguration.cs (1)
214msquicBuffers.Initialize(alpnProtocols, alpnProtocol => alpnProtocol.Protocol);
System\Net\Quic\QuicListener.cs (1)
146alpnBuffers.Initialize(options.ApplicationProtocols, applicationProtocol => applicationProtocol.Protocol);
System.Net.Security (13)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
740if (clientProto.SequenceEqual(protocolList[i].Protocol.Span))
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (6)
211if (protocol.Protocol.Length == 0 || protocol.Protocol.Length > byte.MaxValue) 216protocolSize += protocol.Protocol.Length + 1; 230buffer[offset++] = (byte)protocol.Protocol.Length; 231protocol.Protocol.Span.CopyTo(buffer.Slice(offset)); 232offset += protocol.Protocol.Length;
System\Net\Security\SslConnectionInfo.cs (3)
9private static readonly byte[] s_http1 = SslApplicationProtocol.Http11.Protocol.ToArray(); 10private static readonly byte[] s_http2 = SslApplicationProtocol.Http2.Protocol.ToArray(); 11private static readonly byte[] s_http3 = SslApplicationProtocol.Http3.Protocol.ToArray();
System\Net\Security\TlsFrameHelper.cs (3)
707if (protocol.SequenceEqual(SslApplicationProtocol.Http2.Protocol.Span)) 716else if (protocolLength == SslApplicationProtocol.Http11.Protocol.Length && 717protocol.SequenceEqual(SslApplicationProtocol.Http11.Protocol.Span))