81 references to SslProtocols
System (45)
net\System\Net\_FtpControlStream.cs (2)
199
(
SslProtocols
)ServicePointManager.SecurityProtocol,
407
(
SslProtocols
)ServicePointManager.SecurityProtocol,
net\System\Net\_TLSstream.cs (2)
31
private
SslProtocols
m_SslProtocols;
42
SslProtocols
sslProtocols,
net\System\Net\HttpWebRequest.cs (3)
315
internal
SslProtocols
SslProtocols { get; set; }
5136
SslProtocols = (
SslProtocols
)ServicePointManager.SecurityProtocol;
5271
SslProtocols = (
SslProtocols
)ServicePointManager.SecurityProtocol;
net\System\Net\mail\smtpconnection.cs (3)
402
(
SslProtocols
)ServicePointManager.SecurityProtocol,
926
(
SslProtocols
)ServicePointManager.SecurityProtocol,
951
(
SslProtocols
)ServicePointManager.SecurityProtocol,
net\System\Net\SecureProtocols\_SslState.cs (20)
127
internal void ValidateCreateContext(bool isServer, string targetHost,
SslProtocols
enabledSslProtocols, X509Certificate serverCertificate, X509CertificateCollection clientCertificates, bool remoteCertRequired, bool checkCertRevocationStatus)
132
internal void ValidateCreateContext(bool isServer, string targetHost,
SslProtocols
enabledSslProtocols, X509Certificate serverCertificate, X509CertificateCollection clientCertificates, bool remoteCertRequired, bool checkCertRevocationStatus, bool checkCertName)
156
enabledSslProtocols &= (
SslProtocols
)SchProtocols.ServerMask;
161
enabledSslProtocols &= (
SslProtocols
)SchProtocols.ClientMask;
347
internal
SslProtocols
SslProtocol {
352
return
SslProtocols
.None;
354
SslProtocols
proto = (
SslProtocols
)info.Protocol;
356
if ((proto &
SslProtocols
.Ssl2) != 0) {
357
proto |=
SslProtocols
.Ssl2;
359
if ((proto &
SslProtocols
.Ssl3) != 0) {
360
proto |=
SslProtocols
.Ssl3;
362
if ((proto &
SslProtocols
.Tls) != 0) {
363
proto |=
SslProtocols
.Tls;
365
if ((proto &
SslProtocols
.Tls11) != 0)
367
proto |=
SslProtocols
.Tls11;
369
if ((proto &
SslProtocols
.Tls12) != 0)
371
proto |=
SslProtocols
.Tls12;
373
if ((proto &
SslProtocols
.Tls13) != 0)
375
proto |=
SslProtocols
.Tls13;
net\System\Net\SecureProtocols\SslStream.cs (7)
135
public virtual void AuthenticateAsClient(string targetHost, X509CertificateCollection clientCertificates,
SslProtocols
enabledSslProtocols, bool checkCertificateRevocation)
162
SslProtocols
enabledSslProtocols, bool checkCertificateRevocation,
196
SslProtocols
enabledSslProtocols, bool checkCertificateRevocation)
223
SslProtocols
enabledSslProtocols, bool checkCertificateRevocation,
276
public virtual Task AuthenticateAsClientAsync(string targetHost, X509CertificateCollection clientCertificates,
SslProtocols
enabledSslProtocols, bool checkCertificateRevocation)
294
public virtual Task AuthenticateAsServerAsync(X509Certificate serverCertificate, bool clientCertificateRequired,
SslProtocols
enabledSslProtocols, bool checkCertificateRevocation)
346
public virtual
SslProtocols
SslProtocol {
net\System\Net\ServicePointManager.cs (8)
81
private static
SslProtocols
s_defaultSslProtocols;
273
Debug.Assert((int)SecurityProtocolType.SystemDefault == (int)
SslProtocols
.None);
274
Debug.Assert((int)SecurityProtocolType.Ssl3 == (int)
SslProtocols
.Ssl3);
275
Debug.Assert((int)SecurityProtocolType.Tls == (int)
SslProtocols
.Tls);
276
Debug.Assert((int)SecurityProtocolType.Tls11 == (int)
SslProtocols
.Tls11);
277
Debug.Assert((int)SecurityProtocolType.Tls12 == (int)
SslProtocols
.Tls12);
278
Debug.Assert((int)SecurityProtocolType.Tls13 == (int)
SslProtocols
.Tls13);
323
internal static
SslProtocols
DefaultSslProtocols
System.ServiceModel (36)
System\ServiceModel\Channels\SslStreamSecurityBindingElement.cs (2)
20
SslProtocols
sslProtocols;
72
public
SslProtocols
SslProtocols
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (4)
37
SslProtocols
sslProtocols;
39
SslStreamSecurityUpgradeProvider(IDefaultCommunicationTimeouts timeouts, SecurityTokenManager clientSecurityTokenManager, bool requireClientCertificate, string scheme, IdentityVerifier identityVerifier,
SslProtocols
sslProtocols)
49
SslStreamSecurityUpgradeProvider(IDefaultCommunicationTimeouts timeouts, SecurityTokenProvider serverTokenProvider, bool requireClientCertificate, SecurityTokenAuthenticator clientCertificateAuthenticator, string scheme, IdentityVerifier identityVerifier,
SslProtocols
sslProtocols)
170
public
SslProtocols
SslProtocols
System\ServiceModel\Channels\TransportDefaults.cs (6)
207
internal const
SslProtocols
OldDefaultSslProtocols = System.Security.Authentication.
SslProtocols
.Tls |
208
System.Security.Authentication.
SslProtocols
.Tls11 |
209
System.Security.Authentication.
SslProtocols
.Tls12;
211
internal static
SslProtocols
SslProtocols
222
return System.Security.Authentication.
SslProtocols
.None;
System\ServiceModel\Configuration\Properties.cs (8)
3475
properties.Add(new ConfigurationProperty("sslProtocols", typeof(System.Security.Authentication.
SslProtocols
), System.Security.Authentication.
SslProtocols
.Tls | System.Security.Authentication.
SslProtocols
.Tls11 | System.Security.Authentication.
SslProtocols
.Tls12, null, new System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.ServiceModel.Security.SslProtocolsHelper)), System.Configuration.ConfigurationPropertyOptions.None));
3530
properties.Add(new ConfigurationProperty("sslProtocols", typeof(System.Security.Authentication.
SslProtocols
), System.Security.Authentication.
SslProtocols
.Tls | System.Security.Authentication.
SslProtocols
.Tls11 | System.Security.Authentication.
SslProtocols
.Tls12, null, new System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.ServiceModel.Security.SslProtocolsHelper)), System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\Configuration\SslStreamSecurityElement.cs (2)
28
public
SslProtocols
SslProtocols
30
get { return (
SslProtocols
)base[ConfigurationStrings.SslProtocols]; }
System\ServiceModel\Configuration\TcpTransportSecurityElement.cs (2)
45
public
SslProtocols
SslProtocols
47
get { return (
SslProtocols
)base[ConfigurationStrings.SslProtocols]; }
System\ServiceModel\Security\SecurityUtils.cs (7)
111
internal static bool IsDefined(
SslProtocols
value)
113
SslProtocols
allValues =
SslProtocols
.None;
114
foreach (var protocol in Enum.GetValues(typeof(
SslProtocols
)))
116
allValues |= (
SslProtocols
)protocol;
121
internal static void Validate(
SslProtocols
value)
126
typeof(
SslProtocols
)));
System\ServiceModel\TcpTransportSecurity.cs (5)
23
SslProtocols
sslProtocols;
85
public
SslProtocols
SslProtocols
109
static bool IsSslBindingElement(BindingElement element, TcpTransportSecurity transportSecurity, out bool requireClientCertificate, out
SslProtocols
sslProtocols)
130
SslProtocols
sslProtocols;
151
SslProtocols
sslProtocols = TransportDefaults.SslProtocols;