244 references to SslProtocols
Aspire.Hosting.Yarp (10)
Aspire.Hosting.Yarp.Tests (2)
Aspire.RabbitMQ.Client.Tests (2)
Aspire.RabbitMQ.Client.v7.Tests (2)
dotnet-svcutil-lib (19)
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
http2cat (1)
IIS.FunctionalTests (1)
IIS.LongTests (1)
IIS.NewHandler.FunctionalTests (1)
IIS.NewShim.FunctionalTests (1)
IIS.Tests (3)
IISExpress.FunctionalTests (1)
InMemory.FunctionalTests (33)
HttpsConnectionMiddlewareTests.cs (13)
148Assert.True(tlsFeature.Protocol > SslProtocols.None, "Protocol");
187Assert.True(tlsFeature.Protocol > SslProtocols.None, "Protocol");
429stream.AuthenticateAsClientAsync("localhost", new X509CertificateCollection(), SslProtocols.Tls12 | SslProtocols.Tls11, false));
491stream.AuthenticateAsClientAsync("localhost", new X509CertificateCollection(), SslProtocols.Tls12 | SslProtocols.Tls11, false));
793EnabledSslProtocols = SslProtocols.Tls | SslProtocols.Tls11 | SslProtocols.Tls12,
1137options.SslProtocols = SslProtocols.Tls12 | SslProtocols.Tls11;
1155async () => await stream.AuthenticateAsClientAsync("localhost", new X509CertificateCollection(), SslProtocols.Tls, false));
1399EnabledSslProtocols = SslProtocols.None,
Interop.FunctionalTests (3)
Kestrel.SampleApp (2)
Microsoft.AspNetCore.Connections.Abstractions (2)
Microsoft.AspNetCore.InternalTesting (1)
Microsoft.AspNetCore.Server.HttpSys (15)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (5)
Microsoft.AspNetCore.Server.IIS (15)
Microsoft.AspNetCore.Server.Kestrel.Core (26)
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:
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (11)
Microsoft.AspNetCore.Server.Kestrel.Tests (19)
KestrelConfigurationLoaderTests.cs (13)
826new KeyValuePair<string, string>("Endpoints:End1:SslProtocols:0", SslProtocols.Tls13.ToString()),
863new KeyValuePair<string, string>("EndpointDefaults:SslProtocols:0", SslProtocols.Tls13.ToString()),
1206Assert.Equal(SslProtocols.None, opt.SslProtocols);
1221Assert.Equal(SslProtocols.Tls11, opt.HttpsOptions.SslProtocols);
1231Assert.Equal(SslProtocols.None, httpsOptions.SslProtocols);
1249opt.SslProtocols = SslProtocols.Tls12;
1262Assert.Equal(SslProtocols.Tls11, opt.HttpsOptions.SslProtocols);
1291Assert.Equal(SslProtocols.Tls11, opt.HttpsOptions.SslProtocols);
1310Assert.Equal(SslProtocols.Tls11, opt.SslProtocols);
1312opt.SslProtocols = SslProtocols.Tls12;
1324Assert.Equal(SslProtocols.Tls12, opt.HttpsOptions.SslProtocols);
1387new KeyValuePair<string, string>("Endpoints:End1:Sni:*.example.org:SslProtocols:0", SslProtocols.Tls13.ToString()),
1399Assert.Equal(SslProtocols.Tls13, sniConfig.SslProtocols);
Microsoft.AspNetCore.Shared.Tests (12)
Microsoft.AspNetCore.WebSockets.ConformanceTests (3)
netstandard (1)
Sockets.FunctionalTests (1)
System (1)
System.Net.Http (1)
System.Net.Http.WinHttpHandler (1)
System.Net.HttpListener (1)
System.Net.Mail (2)
System.Net.Quic (1)
System.Net.Security (11)
artifacts\obj\System.Net.Security\Debug\net10.0\System.Net.Security.notsupported.cs (11)
213public System.Security.Authentication.SslProtocols EnabledSslProtocols { get { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); } }
223public SslClientHelloInfo(string serverName, System.Security.Authentication.SslProtocols sslProtocols) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); }
225public System.Security.Authentication.SslProtocols SslProtocols { get { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); } }
239public System.Security.Authentication.SslProtocols EnabledSslProtocols { get { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); } }
283public virtual System.Security.Authentication.SslProtocols SslProtocol { get { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); } }
290public virtual void AuthenticateAsClient(string targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection? clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, bool checkCertificateRevocation) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); }
294public virtual System.Threading.Tasks.Task AuthenticateAsClientAsync(string targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection? clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, bool checkCertificateRevocation) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); }
298public virtual void AuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate serverCertificate, bool clientCertificateRequired, System.Security.Authentication.SslProtocols enabledSslProtocols, bool checkCertificateRevocation) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); }
303public virtual System.Threading.Tasks.Task AuthenticateAsServerAsync(System.Security.Cryptography.X509Certificates.X509Certificate serverCertificate, bool clientCertificateRequired, System.Security.Authentication.SslProtocols enabledSslProtocols, bool checkCertificateRevocation) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); }
306public virtual System.IAsyncResult BeginAuthenticateAsClient(string targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection? clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, bool checkCertificateRevocation, System.AsyncCallback? asyncCallback, object? asyncState) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); }
309public virtual System.IAsyncResult BeginAuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate serverCertificate, bool clientCertificateRequired, System.Security.Authentication.SslProtocols enabledSslProtocols, bool checkCertificateRevocation, System.AsyncCallback? asyncCallback, object? asyncState) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSecurity_PlatformNotSupported); }
System.ServiceModel.NetFramingBase (16)
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.Primitives (4)
System.ServiceModel.UnixDomainSocket (13)