44 references to EncryptionPolicy
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
SniOptionsSelectorTests.cs (1)
847EncryptionPolicy = EncryptionPolicy.NoEncryption,
netstandard (1)
netstandard.cs (1)
1241[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Security.EncryptionPolicy))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
733[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Security.EncryptionPolicy))]
System.Net.Quic (2)
System\Net\Quic\Internal\MsQuicConfiguration.cs (2)
120private static MsQuicConfigurationSafeHandle Create(QuicConnectionOptions options, QUIC_CREDENTIAL_FLAGS flags, X509Certificate? certificate, ReadOnlyCollection<X509Certificate2>? intermediates, List<SslApplicationProtocol>? alpnProtocols, CipherSuitesPolicy? cipherSuitesPolicy, EncryptionPolicy encryptionPolicy) 129if (encryptionPolicy == EncryptionPolicy.NoEncryption)
System.Net.Requests (2)
System\Net\ServicePoint\ServicePointManager.cs (2)
101public static EncryptionPolicy EncryptionPolicy { get; } = EncryptionPolicy.RequireEncryption;
System.Net.Security (37)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (2)
213if (sslAuthenticationOptions.EncryptionPolicy != EncryptionPolicy.RequireEncryption) 341bool cacheSslContext = sslAuthenticationOptions.AllowTlsResume && !SslStream.DisableTlsResume && sslAuthenticationOptions.EncryptionPolicy == EncryptionPolicy.RequireEncryption && sslAuthenticationOptions.CipherSuitesPolicy == null;
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtxOptions.cs (1)
36internal static partial bool SetEncryptionPolicy(SafeSslContextHandle ctx, EncryptionPolicy policy);
System\Net\Security\CipherSuitesPolicyPal.Linux.cs (10)
72internal static bool ShouldOptOutOfTls13(CipherSuitesPolicy? policy, EncryptionPolicy encryptionPolicy) 78if (encryptionPolicy == EncryptionPolicy.NoEncryption) 127EncryptionPolicy encryptionPolicy) 141if (encryptionPolicy == EncryptionPolicy.NoEncryption) 153EncryptionPolicy encryptionPolicy) 162if (encryptionPolicy == EncryptionPolicy.NoEncryption) 171private static ReadOnlySpan<byte> CipherListFromEncryptionPolicy(EncryptionPolicy policy) 175case EncryptionPolicy.RequireEncryption: 178case EncryptionPolicy.AllowNoEncryption: 180case EncryptionPolicy.NoEncryption:
System\Net\Security\SslAuthenticationOptions.cs (1)
177internal EncryptionPolicy EncryptionPolicy { get; set; }
System\Net\Security\SslClientAuthenticationOptions.cs (6)
13private EncryptionPolicy _encryptionPolicy = EncryptionPolicy.RequireEncryption; 63public EncryptionPolicy EncryptionPolicy 69if (value != EncryptionPolicy.RequireEncryption && value != EncryptionPolicy.AllowNoEncryption && value != EncryptionPolicy.NoEncryption)
System\Net\Security\SslServerAuthenticationOptions.cs (6)
14private EncryptionPolicy _encryptionPolicy = EncryptionPolicy.RequireEncryption; 65public EncryptionPolicy EncryptionPolicy 71if (value != EncryptionPolicy.RequireEncryption && value != EncryptionPolicy.AllowNoEncryption && value != EncryptionPolicy.NoEncryption)
System\Net\Security\SslSessionsCache.cs (4)
27private readonly EncryptionPolicy _encryptionPolicy; 42EncryptionPolicy encryptionPolicy, 103EncryptionPolicy encryptionPolicy, 144EncryptionPolicy encryptionPolicy,
System\Net\Security\SslStream.cs (7)
189: this(innerStream, leaveInnerStreamOpen, null, null, EncryptionPolicy.RequireEncryption) 194: this(innerStream, leaveInnerStreamOpen, userCertificateValidationCallback, null, EncryptionPolicy.RequireEncryption) 200: this(innerStream, leaveInnerStreamOpen, userCertificateValidationCallback, userCertificateSelectionCallback, EncryptionPolicy.RequireEncryption) 205LocalCertificateSelectionCallback? userCertificateSelectionCallback, EncryptionPolicy encryptionPolicy) 209if (encryptionPolicy != EncryptionPolicy.RequireEncryption && encryptionPolicy != EncryptionPolicy.AllowNoEncryption && encryptionPolicy != EncryptionPolicy.NoEncryption)