12 references to RequireEncryption
System.Net.Requests (1)
System\Net\ServicePoint\ServicePointManager.cs (1)
101
public static EncryptionPolicy EncryptionPolicy { get; } = EncryptionPolicy.
RequireEncryption
;
System.Net.Security (11)
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;
System\Net\Security\CipherSuitesPolicyPal.Linux.cs (1)
175
case EncryptionPolicy.
RequireEncryption
:
System\Net\Security\SslClientAuthenticationOptions.cs (2)
13
private EncryptionPolicy _encryptionPolicy = EncryptionPolicy.
RequireEncryption
;
69
if (value != EncryptionPolicy.
RequireEncryption
&& value != EncryptionPolicy.AllowNoEncryption && value != EncryptionPolicy.NoEncryption)
System\Net\Security\SslServerAuthenticationOptions.cs (2)
14
private EncryptionPolicy _encryptionPolicy = EncryptionPolicy.
RequireEncryption
;
71
if (value != EncryptionPolicy.
RequireEncryption
&& value != EncryptionPolicy.AllowNoEncryption && value != EncryptionPolicy.NoEncryption)
System\Net\Security\SslStream.cs (4)
189
: this(innerStream, leaveInnerStreamOpen, null, null, EncryptionPolicy.
RequireEncryption
)
194
: this(innerStream, leaveInnerStreamOpen, userCertificateValidationCallback, null, EncryptionPolicy.
RequireEncryption
)
200
: this(innerStream, leaveInnerStreamOpen, userCertificateValidationCallback, userCertificateSelectionCallback, EncryptionPolicy.
RequireEncryption
)
209
if (encryptionPolicy != EncryptionPolicy.
RequireEncryption
&& encryptionPolicy != EncryptionPolicy.AllowNoEncryption && encryptionPolicy != EncryptionPolicy.NoEncryption)