3 writes to EncryptionPolicy
System.Net.Security (3)
System\Net\Security\SslAuthenticationOptions.cs (2)
49
EncryptionPolicy
= sslClientAuthenticationOptions.EncryptionPolicy;
109
EncryptionPolicy
= sslServerAuthenticationOptions.EncryptionPolicy;
System\Net\Security\SslStream.cs (1)
215
_sslAuthenticationOptions.
EncryptionPolicy
= encryptionPolicy;
20 references to EncryptionPolicy
System.Net.Security (20)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (10)
117
CipherSuitesPolicyPal.ShouldOptOutOfTls13(sslAuthenticationOptions.CipherSuitesPolicy, sslAuthenticationOptions.
EncryptionPolicy
))
132
SR.Format(SR.net_ssl_encryptionpolicy_notsupported, sslAuthenticationOptions.
EncryptionPolicy
));
142
SR.Format(SR.net_ssl_encryptionpolicy_notsupported, sslAuthenticationOptions.
EncryptionPolicy
));
213
if (sslAuthenticationOptions.
EncryptionPolicy
!= EncryptionPolicy.RequireEncryption)
216
if (!Ssl.SetEncryptionPolicy(sslCtx, sslAuthenticationOptions.
EncryptionPolicy
))
218
throw new SslException(SR.Format(SR.net_ssl_encryptionpolicy_notsupported, sslAuthenticationOptions.
EncryptionPolicy
));
222
ReadOnlySpan<byte> cipherList = CipherSuitesPolicyPal.GetOpenSslCipherList(sslAuthenticationOptions.CipherSuitesPolicy, protocols, sslAuthenticationOptions.
EncryptionPolicy
);
225
byte[]? cipherSuites = CipherSuitesPolicyPal.GetOpenSslCipherSuites(sslAuthenticationOptions.CipherSuitesPolicy, protocols, sslAuthenticationOptions.
EncryptionPolicy
);
234
throw new PlatformNotSupportedException(SR.Format(SR.net_ssl_encryptionpolicy_notsupported, sslAuthenticationOptions.
EncryptionPolicy
));
341
bool cacheSslContext = sslAuthenticationOptions.AllowTlsResume && !SslStream.DisableTlsResume && sslAuthenticationOptions.
EncryptionPolicy
== EncryptionPolicy.RequireEncryption && sslAuthenticationOptions.CipherSuitesPolicy == null;
System\Net\Security\SslStream.cs (7)
251
EncryptionPolicy = _sslAuthenticationOptions.
EncryptionPolicy
,
290
EncryptionPolicy = _sslAuthenticationOptions.
EncryptionPolicy
,
326
EncryptionPolicy = _sslAuthenticationOptions.
EncryptionPolicy
,
360
EncryptionPolicy = _sslAuthenticationOptions.
EncryptionPolicy
,
388
EncryptionPolicy = _sslAuthenticationOptions.
EncryptionPolicy
,
413
EncryptionPolicy = _sslAuthenticationOptions.
EncryptionPolicy
,
427
EncryptionPolicy = _sslAuthenticationOptions.
EncryptionPolicy
,
System\Net\Security\SslStream.Protocol.cs (3)
605
_sslAuthenticationOptions.
EncryptionPolicy
,
751
_sslAuthenticationOptions.
EncryptionPolicy
,
953
_sslAuthenticationOptions.
EncryptionPolicy
,