44 references to EncryptionPolicy
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
SniOptionsSelectorTests.cs (1)
847
EncryptionPolicy =
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)
124
private static MsQuicConfigurationSafeHandle Create(QuicConnectionOptions options, QUIC_CREDENTIAL_FLAGS flags, X509Certificate? certificate, ReadOnlyCollection<X509Certificate2>? intermediates, List<SslApplicationProtocol>? alpnProtocols, CipherSuitesPolicy? cipherSuitesPolicy,
EncryptionPolicy
encryptionPolicy)
133
if (encryptionPolicy ==
EncryptionPolicy
.NoEncryption)
System.Net.Requests (2)
System\Net\ServicePoint\ServicePointManager.cs (2)
101
public static
EncryptionPolicy
EncryptionPolicy { get; } =
EncryptionPolicy
.RequireEncryption;
System.Net.Security (37)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (2)
213
if (sslAuthenticationOptions.EncryptionPolicy !=
EncryptionPolicy
.RequireEncryption)
341
bool 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)
36
internal static partial bool SetEncryptionPolicy(SafeSslContextHandle ctx,
EncryptionPolicy
policy);
System\Net\Security\CipherSuitesPolicyPal.Linux.cs (10)
72
internal static bool ShouldOptOutOfTls13(CipherSuitesPolicy? policy,
EncryptionPolicy
encryptionPolicy)
78
if (encryptionPolicy ==
EncryptionPolicy
.NoEncryption)
127
EncryptionPolicy
encryptionPolicy)
141
if (encryptionPolicy ==
EncryptionPolicy
.NoEncryption)
153
EncryptionPolicy
encryptionPolicy)
162
if (encryptionPolicy ==
EncryptionPolicy
.NoEncryption)
171
private static ReadOnlySpan<byte> CipherListFromEncryptionPolicy(
EncryptionPolicy
policy)
175
case
EncryptionPolicy
.RequireEncryption:
178
case
EncryptionPolicy
.AllowNoEncryption:
180
case
EncryptionPolicy
.NoEncryption:
System\Net\Security\SslAuthenticationOptions.cs (1)
177
internal
EncryptionPolicy
EncryptionPolicy { get; set; }
System\Net\Security\SslClientAuthenticationOptions.cs (6)
13
private
EncryptionPolicy
_encryptionPolicy =
EncryptionPolicy
.RequireEncryption;
63
public
EncryptionPolicy
EncryptionPolicy
69
if (value !=
EncryptionPolicy
.RequireEncryption && value !=
EncryptionPolicy
.AllowNoEncryption && value !=
EncryptionPolicy
.NoEncryption)
System\Net\Security\SslServerAuthenticationOptions.cs (6)
14
private
EncryptionPolicy
_encryptionPolicy =
EncryptionPolicy
.RequireEncryption;
65
public
EncryptionPolicy
EncryptionPolicy
71
if (value !=
EncryptionPolicy
.RequireEncryption && value !=
EncryptionPolicy
.AllowNoEncryption && value !=
EncryptionPolicy
.NoEncryption)
System\Net\Security\SslSessionsCache.cs (4)
27
private readonly
EncryptionPolicy
_encryptionPolicy;
42
EncryptionPolicy
encryptionPolicy,
103
EncryptionPolicy
encryptionPolicy,
144
EncryptionPolicy
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)
205
LocalCertificateSelectionCallback? userCertificateSelectionCallback,
EncryptionPolicy
encryptionPolicy)
209
if (encryptionPolicy !=
EncryptionPolicy
.RequireEncryption && encryptionPolicy !=
EncryptionPolicy
.AllowNoEncryption && encryptionPolicy !=
EncryptionPolicy
.NoEncryption)