3 writes to EncryptionPolicy
System.Net.Security (3)
System\Net\Security\SslAuthenticationOptions.cs (2)
49EncryptionPolicy = sslClientAuthenticationOptions.EncryptionPolicy; 109EncryptionPolicy = 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)
117CipherSuitesPolicyPal.ShouldOptOutOfTls13(sslAuthenticationOptions.CipherSuitesPolicy, sslAuthenticationOptions.EncryptionPolicy)) 132SR.Format(SR.net_ssl_encryptionpolicy_notsupported, sslAuthenticationOptions.EncryptionPolicy)); 142SR.Format(SR.net_ssl_encryptionpolicy_notsupported, sslAuthenticationOptions.EncryptionPolicy)); 213if (sslAuthenticationOptions.EncryptionPolicy != EncryptionPolicy.RequireEncryption) 216if (!Ssl.SetEncryptionPolicy(sslCtx, sslAuthenticationOptions.EncryptionPolicy)) 218throw new SslException(SR.Format(SR.net_ssl_encryptionpolicy_notsupported, sslAuthenticationOptions.EncryptionPolicy)); 222ReadOnlySpan<byte> cipherList = CipherSuitesPolicyPal.GetOpenSslCipherList(sslAuthenticationOptions.CipherSuitesPolicy, protocols, sslAuthenticationOptions.EncryptionPolicy); 225byte[]? cipherSuites = CipherSuitesPolicyPal.GetOpenSslCipherSuites(sslAuthenticationOptions.CipherSuitesPolicy, protocols, sslAuthenticationOptions.EncryptionPolicy); 234throw new PlatformNotSupportedException(SR.Format(SR.net_ssl_encryptionpolicy_notsupported, sslAuthenticationOptions.EncryptionPolicy)); 341bool cacheSslContext = sslAuthenticationOptions.AllowTlsResume && !SslStream.DisableTlsResume && sslAuthenticationOptions.EncryptionPolicy == EncryptionPolicy.RequireEncryption && sslAuthenticationOptions.CipherSuitesPolicy == null;
System\Net\Security\SslStream.cs (7)
251EncryptionPolicy = _sslAuthenticationOptions.EncryptionPolicy, 290EncryptionPolicy = _sslAuthenticationOptions.EncryptionPolicy, 326EncryptionPolicy = _sslAuthenticationOptions.EncryptionPolicy, 360EncryptionPolicy = _sslAuthenticationOptions.EncryptionPolicy, 388EncryptionPolicy = _sslAuthenticationOptions.EncryptionPolicy, 413EncryptionPolicy = _sslAuthenticationOptions.EncryptionPolicy, 427EncryptionPolicy = _sslAuthenticationOptions.EncryptionPolicy,
System\Net\Security\SslStream.Protocol.cs (3)
605_sslAuthenticationOptions.EncryptionPolicy, 751_sslAuthenticationOptions.EncryptionPolicy, 953_sslAuthenticationOptions.EncryptionPolicy,