407 references to SslProtocols
Aspire.RabbitMQ.Client.Tests (2)
AspireRabbitMQExtensionsTests.cs (2)
151Assert.Equal(SslProtocols.Tls12, connectionFactory.AmqpUriSslProtocols); 156Assert.Equal(SslProtocols.Tls13, connectionFactory.Ssl.Version);
dotnet-svcutil-lib (19)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SslStreamSecurityBindingElement.cs (2)
18private SslProtocols _sslProtocols; 70public SslProtocols SslProtocols
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (4)
34private SslProtocols _sslProtocols; 37private SslStreamSecurityUpgradeProvider(IDefaultCommunicationTimeouts timeouts, SecurityTokenManager clientSecurityTokenManager, bool requireClientCertificate, string scheme, IdentityVerifier identityVerifier, SslProtocols sslProtocols) 47private SslStreamSecurityUpgradeProvider(IDefaultCommunicationTimeouts timeouts, SecurityTokenProvider serverTokenProvider, bool requireClientCertificate, SecurityTokenAuthenticator clientCertificateAuthenticator, string scheme, IdentityVerifier identityVerifier, SslProtocols sslProtocols) 142public SslProtocols SslProtocols
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportDefaults.cs (4)
168public const SslProtocols SslProtocols = 170System.Security.Authentication.SslProtocols.Tls | 171System.Security.Authentication.SslProtocols.Tls11 | 172System.Security.Authentication.SslProtocols.Tls12;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (7)
86internal static bool IsDefined(SslProtocols value) 88SslProtocols allValues = SslProtocols.None; 89foreach (var protocol in Enum.GetValues(typeof(SslProtocols))) 91allValues |= (SslProtocols)protocol; 96internal static void Validate(SslProtocols value) 101typeof(SslProtocols)));
FrameworkFork\System.ServiceModel\System\ServiceModel\TcpTransportSecurity.cs (2)
20private SslProtocols _sslProtocols; 59public SslProtocols SslProtocols
http2cat (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
101EnabledSslProtocols = SslProtocols.Tls12,
IIS.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
101EnabledSslProtocols = SslProtocols.Tls12,
IIS.LongTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
101EnabledSslProtocols = SslProtocols.Tls12,
IIS.NewHandler.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
101EnabledSslProtocols = SslProtocols.Tls12,
IIS.NewShim.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
101EnabledSslProtocols = SslProtocols.Tls12,
IIS.Tests (3)
TlsHandshakeFeatureTests.cs (3)
32var protocol = tlsHandshakeFeature.Protocol; 33Assert.True(protocol > SslProtocols.None, "Protocol: " + protocol); 34Assert.True(Enum.IsDefined(typeof(SslProtocols), protocol), "Defined: " + protocol); // Mapping is required, make sure it's current
IISExpress.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
101EnabledSslProtocols = SslProtocols.Tls12,
InMemory.FunctionalTests (32)
EventSourceTests.cs (1)
297EnabledSslProtocols = SslProtocols.Ssl2,
Http2\Http2ConnectionTests.cs (1)
5873tlsHandshakeMock.SetupGet(m => m.Protocol).Returns(SslProtocols.Tls12);
Http2\TlsTests.cs (3)
56httpsOptions.SslProtocols = SslProtocols.Tls11 | SslProtocols.Tls12; 70EnabledSslProtocols = SslProtocols.Tls11, // Intentionally less than the required 1.2
HttpsConnectionMiddlewareTests.cs (13)
148Assert.True(tlsFeature.Protocol > SslProtocols.None, "Protocol"); 185Assert.True(tlsFeature.Protocol > SslProtocols.None, "Protocol"); 425stream.AuthenticateAsClientAsync("localhost", new X509CertificateCollection(), SslProtocols.Tls12 | SslProtocols.Tls11, false)); 487stream.AuthenticateAsClientAsync("localhost", new X509CertificateCollection(), SslProtocols.Tls12 | SslProtocols.Tls11, false)); 789EnabledSslProtocols = SslProtocols.Tls | SslProtocols.Tls11 | SslProtocols.Tls12, 1133options.SslProtocols = SslProtocols.Tls12 | SslProtocols.Tls11; 1151async () => await stream.AuthenticateAsClientAsync("localhost", new X509CertificateCollection(), SslProtocols.Tls, false)); 1395EnabledSslProtocols = SslProtocols.None,
HttpsTests.cs (9)
96enabledSslProtocols: SslProtocols.None, 258enabledSslProtocols: SslProtocols.None, 302enabledSslProtocols: SslProtocols.None, 333enabledSslProtocols: SslProtocols.None, 689httpsOptions.SslProtocols = SslProtocols.Tls12 | SslProtocols.Tls11; 699enabledSslProtocols: SslProtocols.Tls, 738enabledSslProtocols: SslProtocols.None, 777enabledSslProtocols: SslProtocols.None,
KestrelMetricsTests.cs (2)
697options.SslProtocols = SslProtocols.Tls12; 865options.SslProtocols = SslProtocols.Tls12;
src\Servers\Kestrel\shared\test\CertHelper.cs (2)
172internal static string GetTestSNIName(string testMethodName, params SslProtocols?[] protocols) 174static string ProtocolToString(SslProtocols? protocol)
TestTransport\InMemoryHttpClientSlim.cs (1)
128enabledSslProtocols: SslProtocols.None,
Interop.FunctionalTests (3)
Http2\Http2RequestTests.cs (3)
96var protocolTcs = new TaskCompletionSource<SslProtocols>(TaskCreationOptions.RunContinuationsAsynchronously); 111https.SslProtocols = SslProtocols.Tls12; 133var protocol = await protocolTcs.Task.DefaultTimeout();
Kestrel.SampleApp (2)
Startup.cs (2)
89httpsOptions.SslProtocols = SslProtocols.Tls12; 161opt.HttpsOptions.SslProtocols = SslProtocols.Tls12;
Microsoft.AspNetCore.Connections.Abstractions (2)
Features\ITlsHandshakeFeature.cs (2)
18/// Gets the <see cref="SslProtocols"/>. 20SslProtocols Protocol { get; }
Microsoft.AspNetCore.InternalTesting (1)
HttpClientSlim.cs (1)
161enabledSslProtocols: SslProtocols.None,
Microsoft.AspNetCore.Server.HttpSys (15)
RequestProcessing\Request.cs (2)
337public SslProtocols Protocol { get; private set; } 354Protocol = (SslProtocols)handshake.Protocol;
RequestProcessing\RequestContext.FeatureCollection.cs (1)
593SslProtocols ITlsHandshakeFeature.Protocol => Request.Protocol;
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (12)
389if ((protocol & (uint)SslProtocols.Ssl2) != 0) 391protocol |= (uint)SslProtocols.Ssl2; 393if ((protocol & (uint)SslProtocols.Ssl3) != 0) 395protocol |= (uint)SslProtocols.Ssl3; 399if ((protocol & (uint)SslProtocols.Tls) != 0) 401protocol |= (uint)SslProtocols.Tls; 403if ((protocol & (uint)SslProtocols.Tls11) != 0) 405protocol |= (uint)SslProtocols.Tls11; 408if ((protocol & (uint)SslProtocols.Tls12) != 0) 410protocol |= (uint)SslProtocols.Tls12; 412if ((protocol & (uint)SslProtocols.Tls13) != 0) 414protocol |= (uint)SslProtocols.Tls13;
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (5)
HttpsTests.cs (4)
164var protocol = (SslProtocols)result.GetProperty("protocol").GetInt32(); 165Assert.True(protocol > SslProtocols.None, "Protocol: " + protocol); 166Assert.True(Enum.IsDefined(typeof(SslProtocols), protocol), "Defined: " + protocol); // Mapping is required, make sure it's current
src\Shared\Http2cat\Http2CatHostedService.cs (1)
101EnabledSslProtocols = SslProtocols.Tls12,
Microsoft.AspNetCore.Server.IIS (15)
Core\IISHttpContext.cs (2)
118public SslProtocols Protocol { get; private set; } 397Protocol = (SslProtocols)handshake.Protocol;
Core\IISHttpContext.FeatureCollection.cs (1)
406SslProtocols ITlsHandshakeFeature.Protocol => Protocol;
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (12)
389if ((protocol & (uint)SslProtocols.Ssl2) != 0) 391protocol |= (uint)SslProtocols.Ssl2; 393if ((protocol & (uint)SslProtocols.Ssl3) != 0) 395protocol |= (uint)SslProtocols.Ssl3; 399if ((protocol & (uint)SslProtocols.Tls) != 0) 401protocol |= (uint)SslProtocols.Tls; 403if ((protocol & (uint)SslProtocols.Tls11) != 0) 405protocol |= (uint)SslProtocols.Tls11; 408if ((protocol & (uint)SslProtocols.Tls12) != 0) 410protocol |= (uint)SslProtocols.Tls12; 412if ((protocol & (uint)SslProtocols.Tls13) != 0) 414protocol |= (uint)SslProtocols.Tls13;
Microsoft.AspNetCore.Server.Kestrel.Core (26)
HttpsConnectionAdapterOptions.cs (2)
75/// Specifies allowable SSL protocols. Defaults to <see cref="SslProtocols.None" /> which allows the operating system to choose the best protocol to use, 78public SslProtocols SslProtocols { get; set; }
Internal\ConfigurationReader.cs (12)
186private static SslProtocols? ParseSslProcotols(IConfigurationSection sslProtocols) 200return stringProtocols?.Aggregate(SslProtocols.None, (acc, current) => 202if (Enum.TryParse(current, ignoreCase: true, out SslProtocols parsed)) 243public SslProtocols? SslProtocols { get; set; } 297public SslProtocols? SslProtocols { get; set; } 306(SslProtocols ?? System.Security.Authentication.SslProtocols.None) == (other.SslProtocols ?? System.Security.Authentication.SslProtocols.None) && 313Protocols ?? ListenOptions.DefaultHttpProtocols, SslProtocols ?? System.Security.Authentication.SslProtocols.None, 341public SslProtocols? SslProtocols { get; set; } 348(SslProtocols ?? System.Security.Authentication.SslProtocols.None) == (other.SslProtocols ?? System.Security.Authentication.SslProtocols.None) && 353Protocols ?? ListenOptions.DefaultHttpProtocols, SslProtocols ?? System.Security.Authentication.SslProtocols.None,
Internal\Http2\Http2Connection.cs (1)
511if (tlsFeature.Protocol < SslProtocols.Tls12)
Internal\Infrastructure\KestrelMetrics.cs (9)
283public void TlsHandshakeStop(ConnectionMetricsContext metricsContext, long startTimestamp, long currentTimestamp, SslProtocols? protocol = null, Exception? exception = null) 292private void TlsHandshakeStopCore(ConnectionMetricsContext metricsContext, long startTimestamp, long currentTimestamp, SslProtocols? protocol = null, Exception? exception = null) 378public static bool TryGetHandshakeProtocol(SslProtocols protocols, [NotNullWhen(true)] out string? name, [NotNullWhen(true)] out string? version) 387case SslProtocols.Ssl2: 391case SslProtocols.Ssl3: 395case SslProtocols.Tls: 399case SslProtocols.Tls11: 403case SslProtocols.Tls12: 407case SslProtocols.Tls13:
Internal\TlsConnectionFeature.cs (1)
49public SslProtocols Protocol => _sslStream.SslProtocol;
Middleware\HttpsConnectionMiddleware.cs (1)
590public static partial void HttpsConnectionEstablished(this ILogger<HttpsConnectionMiddleware> logger, string connectionId, SslProtocols protocol);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (11)
SniOptionsSelectorTests.cs (9)
681SslProtocols = SslProtocols.Tls13 | SslProtocols.Tls11, 694SslProtocols = SslProtocols.Tls13 701Assert.Equal(SslProtocols.Tls13 | SslProtocols.Tls11, options.EnabledSslProtocols); 725SslProtocols = SslProtocols.Tls13 731Assert.Equal(SslProtocols.Tls13, options.EnabledSslProtocols); 843EnabledSslProtocols = SslProtocols.Tls13 | SslProtocols.Tls11,
src\Servers\Kestrel\shared\test\CertHelper.cs (2)
172internal static string GetTestSNIName(string testMethodName, params SslProtocols?[] protocols) 174static string ProtocolToString(SslProtocols? protocol)
Microsoft.AspNetCore.Server.Kestrel.Tests (19)
ConfigurationReaderTests.cs (6)
233Assert.Equal(SslProtocols.Tls11, endpoint.SslProtocols); 250Assert.Equal(SslProtocols.Tls11 | SslProtocols.Tls12, endpoint.SslProtocols); 266Assert.Equal(SslProtocols.Tls11, endpoint.SslProtocols); 333Assert.Equal(SslProtocols.Tls12, config.SslProtocols); 353Assert.Equal(SslProtocols.Tls11, endpoint.SslProtocols);
KestrelConfigurationLoaderTests.cs (13)
799new KeyValuePair<string, string>("Endpoints:End1:SslProtocols:0", SslProtocols.Tls13.ToString()), 836new KeyValuePair<string, string>("EndpointDefaults:SslProtocols:0", SslProtocols.Tls13.ToString()), 1179Assert.Equal(SslProtocols.None, opt.SslProtocols); 1194Assert.Equal(SslProtocols.Tls11, opt.HttpsOptions.SslProtocols); 1204Assert.Equal(SslProtocols.None, httpsOptions.SslProtocols); 1222opt.SslProtocols = SslProtocols.Tls12; 1235Assert.Equal(SslProtocols.Tls11, opt.HttpsOptions.SslProtocols); 1264Assert.Equal(SslProtocols.Tls11, opt.HttpsOptions.SslProtocols); 1283Assert.Equal(SslProtocols.Tls11, opt.SslProtocols); 1285opt.SslProtocols = SslProtocols.Tls12; 1297Assert.Equal(SslProtocols.Tls12, opt.HttpsOptions.SslProtocols); 1360new KeyValuePair<string, string>("Endpoints:End1:Sni:*.example.org:SslProtocols:0", SslProtocols.Tls13.ToString()), 1372Assert.Equal(SslProtocols.Tls13, sniConfig.SslProtocols);
Microsoft.AspNetCore.Shared.Tests (12)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (12)
389if ((protocol & (uint)SslProtocols.Ssl2) != 0) 391protocol |= (uint)SslProtocols.Ssl2; 393if ((protocol & (uint)SslProtocols.Ssl3) != 0) 395protocol |= (uint)SslProtocols.Ssl3; 399if ((protocol & (uint)SslProtocols.Tls) != 0) 401protocol |= (uint)SslProtocols.Tls; 403if ((protocol & (uint)SslProtocols.Tls11) != 0) 405protocol |= (uint)SslProtocols.Tls11; 408if ((protocol & (uint)SslProtocols.Tls12) != 0) 410protocol |= (uint)SslProtocols.Tls12; 412if ((protocol & (uint)SslProtocols.Tls13) != 0) 414protocol |= (uint)SslProtocols.Tls13;
Microsoft.AspNetCore.WebSockets.ConformanceTests (3)
Autobahn\AutobahnTester.cs (3)
155handler.SslProtocols = SslProtocols.Tls12 | SslProtocols.Tls11 | SslProtocols.Tls;
netstandard (1)
netstandard.cs (1)
1834[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Authentication.SslProtocols))]
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (1)
698await sslStream.AuthenticateAsClientAsync("localhost", new X509CertificateCollection(), SslProtocols.None, false);
System (1)
src\libraries\shims\System\ref\System.cs (1)
849[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Authentication.SslProtocols))]
System.Net.Http (10)
src\libraries\Common\src\System\Net\SecurityProtocol.cs (7)
10public const SslProtocols DefaultSecurityProtocols = 12SslProtocols.Tls13 | 15SslProtocols.Tls | SslProtocols.Tls11 | SslProtocols.Tls12; 18public const SslProtocols SystemDefaultSecurityProtocols = SslProtocols.None;
System\Net\Http\HttpClientHandler.cs (1)
334public SslProtocols SslProtocols
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
285if (s_isWindows7Or2008R2 && sslOptions.EnabledSslProtocols == SslProtocols.None)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (1)
198if (sslStream.SslProtocol < SslProtocols.Tls12)
System.Net.Http.WinHttpHandler (1)
artifacts\obj\System.Net.Http.WinHttpHandler\Debug\net10.0\System.Net.Http.WinHttpHandler.notsupported.cs (1)
46public System.Security.Authentication.SslProtocols SslProtocols { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_WinHttpHandler); } set { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_WinHttpHandler); } }
System.Net.HttpListener (1)
System\Net\Managed\HttpConnection.cs (1)
106_sslStream?.AuthenticateAsServer(_cert, true, (SslProtocols)ServicePointManager.SecurityProtocol, false);
System.Net.Mail (9)
src\libraries\Common\src\System\Net\SecurityProtocol.cs (7)
10public const SslProtocols DefaultSecurityProtocols = 12SslProtocols.Tls13 | 15SslProtocols.Tls | SslProtocols.Tls11 | SslProtocols.Tls12; 18public const SslProtocols SystemDefaultSecurityProtocols = SslProtocols.None;
System\Net\Mail\SmtpConnection.cs (2)
241(SslProtocols)ServicePointManager.SecurityProtocol, // enums use same values 705(SslProtocols)ServicePointManager.SecurityProtocol, // enums use same values
System.Net.Quic (6)
System\Net\Quic\QuicConnection.cs (5)
224private SslProtocols _negotiatedSslProtocol; 306/// Gets a <see cref="System.Security.Authentication.SslProtocols"/> value that indicates the security protocol used to authenticate this connection. 308public SslProtocols SslProtocol => _negotiatedSslProtocol; 636_negotiatedSslProtocol = (SslProtocols)info.TlsProtocolVersion; 639Debug.Assert(_negotiatedSslProtocol == SslProtocols.Tls13, $"Unexpected TLS version {info.TlsProtocolVersion}");
System\Net\Quic\QuicListener.cs (1)
344SslClientHelloInfo clientHello = new SslClientHelloInfo(data.Info->ServerNameLength > 0 ? Marshal.PtrToStringUTF8((IntPtr)data.Info->ServerName, data.Info->ServerNameLength) : "", SslProtocols.Tls13);
System.Net.Requests (17)
src\libraries\Common\src\System\Net\SecurityProtocol.cs (7)
10public const SslProtocols DefaultSecurityProtocols = 12SslProtocols.Tls13 | 15SslProtocols.Tls | SslProtocols.Tls11 | SslProtocols.Tls12; 18public const SslProtocols SystemDefaultSecurityProtocols = SslProtocols.None;
System\Net\FtpControlStream.cs (4)
198(SslProtocols)ServicePointManager.SecurityProtocol, // enums use same values 209(SslProtocols)ServicePointManager.SecurityProtocol, // enums use same values 404(SslProtocols)ServicePointManager.SecurityProtocol, // enums use same values 429(SslProtocols)ServicePointManager.SecurityProtocol, // enums use same values
System\Net\HttpWebRequest.cs (1)
1739handler.SslOptions.EnabledSslProtocols = (SslProtocols)parameters.SslProtocols;
System\Net\ServicePoint\SecurityProtocolType.cs (5)
14Ssl3 = SslProtocols.Ssl3, 17Tls = SslProtocols.Tls, 18Tls11 = SslProtocols.Tls11, 20Tls12 = SslProtocols.Tls12, 21Tls13 = SslProtocols.Tls13,
System.Net.Security (138)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (18)
26private const SslProtocols FakeAlpnSslProtocol = (SslProtocols)1; // used to distinguish server sessions with ALPN 35public readonly SslProtocols SslProtocols; 37public SslContextCacheKey(SslProtocols sslProtocols, byte[]? certificateThumbprint) 102private static SslProtocols CalculateEffectiveProtocols(SslAuthenticationOptions sslAuthenticationOptions) 106SslProtocols protocols = sslAuthenticationOptions.EnabledSslProtocols & ~((SslProtocols)1); 110if (protocols != SslProtocols.None && 113protocols &= ~SslProtocols.Tls13; 119if (protocols == SslProtocols.None) 125protocols = SslProtocols.Tls | SslProtocols.Tls11 | SslProtocols.Tls12; 145protocols = SslProtocols.Tls13; 153SslProtocols protocols = CalculateEffectiveProtocols(sslAuthenticationOptions); 175SslProtocols serverCacheKey = protocols | (hasAlpn ? FakeAlpnSslProtocol : SslProtocols.None); 198internal static unsafe SafeSslContextHandle AllocateSslContext(SslAuthenticationOptions sslAuthenticationOptions, SslProtocols protocols, bool enableResume)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SetProtocolOptions.cs (2)
14internal static partial void SslCtxSetProtocolOptions(IntPtr ctx, SslProtocols protocols); 17internal static partial void SslCtxSetProtocolOptions(SafeSslContextHandle ctx, SslProtocols protocols);
src\libraries\Common\src\System\Net\SecurityProtocol.cs (7)
10public const SslProtocols DefaultSecurityProtocols = 12SslProtocols.Tls13 | 15SslProtocols.Tls | SslProtocols.Tls11 | SslProtocols.Tls12; 18public const SslProtocols SystemDefaultSecurityProtocols = SslProtocols.None;
System\Net\Security\CipherSuitesPolicyPal.Linux.cs (7)
118private static bool IsOnlyTls13(SslProtocols protocols) 119=> protocols == SslProtocols.Tls13; 121internal static bool WantsTls13(SslProtocols protocols) 122=> protocols == SslProtocols.None || (protocols & SslProtocols.Tls13) != 0; 126SslProtocols protocols, 152SslProtocols protocols,
System\Net\Security\NetEventSource.Security.cs (1)
196SslProtocols sslProtocol,
System\Net\Security\NetSecurityTelemetry.cs (22)
144private void HandshakeStop(SslProtocols protocol) 148Debug.Assert(sizeof(SslProtocols) == 4); 171HandshakeStop(SslProtocols.None); 175public void HandshakeCompleted(SslProtocols protocol, long startingTimestamp, bool connectionOpen) 183Debug.Assert(Enum.GetValues<SslProtocols>()[^1] == SslProtocols.Tls13, "Make sure to add a counter for new SslProtocols"); 188case SslProtocols.Tls: 193case SslProtocols.Tls11: 199case SslProtocols.Tls12: 204case SslProtocols.Tls13: 224public void ConnectionClosed(SslProtocols protocol) 231case SslProtocols.Tls: 235case SslProtocols.Tls11: 240case SslProtocols.Tls12: 244case SslProtocols.Tls13: 335SslProtocols protocol = stream.GetSslProtocolInternal(); 351static (string?, string?) GetNameAndVersionString(SslProtocols protocol) => protocol switch 354SslProtocols.Ssl2 => ("ssl", "2"), 355SslProtocols.Ssl3 => ("ssl", "3"), 358SslProtocols.Tls => ("tls", "1"), 359SslProtocols.Tls12 => ("tls", "1.2"), 361SslProtocols.Tls13 => ("tls", "1.3"),
System\Net\Security\SslAuthenticationOptions.cs (7)
153private static SslProtocols FilterOutIncompatibleSslProtocols(SslProtocols protocols) 155if ((protocols & (SslProtocols.Tls12 | SslProtocols.Tls13)) != SslProtocols.None) 161protocols &= ~SslProtocols.Ssl2; 175internal SslProtocols EnabledSslProtocols { get; set; }
System\Net\Security\SslClientAuthenticationOptions.cs (2)
15private SslProtocols _enabledSslProtocols = SecurityProtocol.SystemDefaultSecurityProtocols; 79public SslProtocols EnabledSslProtocols
System\Net\Security\SslClientHelloInfo.cs (2)
14public readonly SslProtocols SslProtocols { get; } 16public SslClientHelloInfo(string serverName, SslProtocols sslProtocols)
System\Net\Security\SslConnectionInfo.Linux.cs (8)
48private unsafe SslProtocols MapProtocolVersion(IntPtr protocolVersion) 71return SslProtocols.Tls; 77case (byte)'1': return SslProtocols.Tls11; 79case (byte)'2': return SslProtocols.Tls12; 80case (byte)'3': return SslProtocols.Tls13; 94return SslProtocols.Ssl2; 98return SslProtocols.Ssl3; 104return SslProtocols.None;
System\Net\Security\SslServerAuthenticationOptions.cs (2)
13private SslProtocols _enabledSslProtocols = SecurityProtocol.SystemDefaultSecurityProtocols; 45public SslProtocols EnabledSslProtocols
System\Net\Security\SslSessionsCache.cs (2)
101SslProtocols sslProtocols, 142SslProtocols sslProtocols,
System\Net\Security\SslStream.cs (25)
242SslProtocols enabledSslProtocols, bool checkCertificateRevocation, 280SslProtocols enabledSslProtocols, bool checkCertificateRevocation, 318public virtual void AuthenticateAsClient(string targetHost, X509CertificateCollection? clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation) 352public virtual void AuthenticateAsServer(X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation) 380public virtual Task AuthenticateAsClientAsync(string targetHost, X509CertificateCollection? clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation) 419public virtual Task AuthenticateAsServerAsync(X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation) 481public virtual SslProtocols SslProtocol 491internal SslProtocols GetSslProtocolInternal() 495return SslProtocols.None; 498SslProtocols proto = (SslProtocols)_connectionInfo.Protocol; 499SslProtocols ret = SslProtocols.None; 503if ((proto & SslProtocols.Ssl2) != 0) 505ret |= SslProtocols.Ssl2; 508if ((proto & SslProtocols.Ssl3) != 0) 510ret |= SslProtocols.Ssl3; 515if ((proto & SslProtocols.Tls) != 0) 517ret |= SslProtocols.Tls; 520if ((proto & SslProtocols.Tls11) != 0) 522ret |= SslProtocols.Tls11; 526if ((proto & SslProtocols.Tls12) != 0) 528ret |= SslProtocols.Tls12; 531if ((proto & SslProtocols.Tls13) != 0) 533ret |= SslProtocols.Tls13;
System\Net\Security\SslStream.IO.cs (4)
153SslProtocols protocol = GetSslProtocolInternal(); 431if (!_isRenego && _buffer.EncryptedReadOnlySpan[_lastFrame.Header.Version == SslProtocols.Ssl2 ? HandshakeTypeOffsetSsl2 : HandshakeTypeOffsetTls] == (byte)TlsHandshakeType.ClientHello && 476if (_isRenego && SslProtocol != SslProtocols.Tls13) 805if (_sslAuthenticationOptions.AllowRenegotiation || SslProtocol == SslProtocols.Tls13 || _nestedAuth != NestedState.StreamNotInUse)
System\Net\Security\SslStreamCertificateContext.Linux.cs (3)
28internal ConcurrentDictionary<SslProtocols, SafeSslContextHandle> SslContexts 32ConcurrentDictionary<SslProtocols, SafeSslContextHandle>? sslContexts = _sslContexts; 43private ConcurrentDictionary<SslProtocols, SafeSslContextHandle>? _sslContexts;
System\Net\Security\TlsFrameHelper.cs (26)
89public SslProtocols Version; 122public SslProtocols SupportedVersions; 208header.Version = SslProtocols.Ssl2; 261if (info.Header.Version == SslProtocols.Ssl2) 277if (((int)info.Header.Version >= (int)SslProtocols.Tls) && 317private static byte[] CreateProtocolVersionAlert(SslProtocols version) => 320SslProtocols.Tls13 => s_protocolMismatch13, 321SslProtocols.Tls12 => s_protocolMismatch12, 323SslProtocols.Tls11 => s_protocolMismatch11, 324SslProtocols.Tls => s_protocolMismatch10, 327SslProtocols.Ssl3 => s_protocolMismatch30, 332public static byte[] CreateAlertFrame(SslProtocols version, TlsAlertDescription reason) 339else if ((int)version > (int)SslProtocols.Tls) 346case SslProtocols.Tls13: 350case SslProtocols.Tls11: 353case SslProtocols.Tls: 521if (!TryGetSupportedVersionsFromExtension(extensionData, out SslProtocols versions)) 631private static bool TryGetSupportedVersionsFromExtension(ReadOnlySpan<byte> extensionData, out SslProtocols protocols) 646protocols = SslProtocols.None; 732private static SslProtocols TlsMinorVersionToProtocol(byte value) 7364 => SslProtocols.Tls13, 7373 => SslProtocols.Tls12, 7392 => SslProtocols.Tls11, 7401 => SslProtocols.Tls, 7430 => SslProtocols.Ssl3, 745_ => SslProtocols.None,
System.ServiceModel.NetFramingBase (16)
System\ServiceModel\Channels\SslProtocolsHelper.cs (7)
11internal static bool IsDefined(SslProtocols value) 13SslProtocols allValues = SslProtocols.None; 14foreach (var protocol in Enum.GetValues(typeof(SslProtocols))) 16allValues |= (SslProtocols)protocol; 21internal static void Validate(SslProtocols value) 26typeof(SslProtocols)));
System\ServiceModel\Channels\SslStreamSecurityBindingElement.cs (2)
16private SslProtocols _sslProtocols; 53public SslProtocols SslProtocols
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (3)
29private SslStreamSecurityUpgradeProvider(IDefaultCommunicationTimeouts timeouts, SecurityTokenManager clientSecurityTokenManager, bool requireClientCertificate, string scheme, IdentityVerifier identityVerifier, SslProtocols sslProtocols) 39private SslStreamSecurityUpgradeProvider(IDefaultCommunicationTimeouts timeouts, SecurityTokenProvider serverTokenProvider, bool requireClientCertificate, SecurityTokenAuthenticator clientCertificateAuthenticator, string scheme, IdentityVerifier identityVerifier, SslProtocols sslProtocols) 93public SslProtocols SslProtocols { get; }
System\ServiceModel\Channels\TransportDefaults.cs (4)
16public const SSAuth.SslProtocols SslProtocols = 18SSAuth.SslProtocols.Tls | 19SSAuth.SslProtocols.Tls11 | 20SSAuth.SslProtocols.Tls12;
System.ServiceModel.NetTcp (13)
System\ServiceModel\Channels\SslProtocolsHelper.cs (7)
11internal static bool IsDefined(SslProtocols value) 13SslProtocols allValues = SslProtocols.None; 14foreach (var protocol in Enum.GetValues(typeof(SslProtocols))) 16allValues |= (SslProtocols)protocol; 21internal static void Validate(SslProtocols value) 26typeof(SslProtocols)));
System\ServiceModel\Channels\TransportDefaults.cs (4)
22public const SslProtocols SslProtocols = 24SSAuth.SslProtocols.Tls | 25SSAuth.SslProtocols.Tls11 | 26SSAuth.SslProtocols.Tls12;
System\ServiceModel\TcpTransportSecurity.cs (2)
21private SslProtocols _sslProtocols; 84public SslProtocols SslProtocols
System.ServiceModel.Primitives (4)
System\ServiceModel\Channels\TransportDefaults.cs (4)
169public const SslProtocols SslProtocols = 171System.Security.Authentication.SslProtocols.Tls | 172System.Security.Authentication.SslProtocols.Tls11 | 173System.Security.Authentication.SslProtocols.Tls12;
System.ServiceModel.UnixDomainSocket (13)
System\ServiceModel\Channels\SslProtocolsHelper.cs (7)
11internal static bool IsDefined(SslProtocols value) 13SslProtocols allValues = SslProtocols.None; 14foreach (var protocol in Enum.GetValues(typeof(SslProtocols))) 16allValues |= (SslProtocols)protocol; 21internal static void Validate(SslProtocols value) 26typeof(SslProtocols)));
System\ServiceModel\Channels\TransportDefaults.cs (4)
22public const SslProtocols SslProtocols = 24SSAuth.SslProtocols.Tls | 25SSAuth.SslProtocols.Tls11 | 26SSAuth.SslProtocols.Tls12;
System\ServiceModel\UnixDomainSocketTransportSecurity.cs (2)
22private SslProtocols _sslProtocols; 85public SslProtocols SslProtocols