30 references to EncryptionOptions
System.Data (30)
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (1)
1224
bool isEncrypted = _parser.EncryptionOptions ==
EncryptionOptions
.ON;
fx\src\data\System\Data\SqlClient\TdsParser.cs (23)
156
private static
EncryptionOptions
_sniSupportedEncryptionOption = SNILoadHandle.SingletonInstance.Options;
158
private
EncryptionOptions
_encryptionOption = _sniSupportedEncryptionOption;
302
internal
EncryptionOptions
EncryptionOptions {
576
Debug.Assert(_encryptionOption ==
EncryptionOptions
.LOGIN, "Invalid encryption option state");
769
if (_encryptionOption ==
EncryptionOptions
.NOT_SUP) {
771
payload[payloadLength] = (byte)
EncryptionOptions
.NOT_SUP;
776
payload[payloadLength] = (byte)
EncryptionOptions
.ON;
777
_encryptionOption =
EncryptionOptions
.ON;
780
payload[payloadLength] = (byte)
EncryptionOptions
.OFF;
781
_encryptionOption =
EncryptionOptions
.OFF;
935
EncryptionOptions
serverOption = (
EncryptionOptions
)payload[payloadOffset];
946
case (
EncryptionOptions
.ON):
947
if (serverOption ==
EncryptionOptions
.NOT_SUP) {
955
case (
EncryptionOptions
.OFF):
956
if (serverOption ==
EncryptionOptions
.OFF) {
958
_encryptionOption =
EncryptionOptions
.LOGIN;
960
else if (serverOption ==
EncryptionOptions
.REQ) {
962
_encryptionOption =
EncryptionOptions
.ON;
967
case (
EncryptionOptions
.NOT_SUP):
968
if (serverOption ==
EncryptionOptions
.REQ) {
981
if (_encryptionOption ==
EncryptionOptions
.ON ||
982
_encryptionOption ==
EncryptionOptions
.LOGIN) {
fx\src\data\System\Data\SqlClient\TdsParserSafeHandles.cs (4)
29
private readonly
EncryptionOptions
_encryptionOption;
48
_encryptionOption = (value == 0) ?
EncryptionOptions
.NOT_SUP :
EncryptionOptions
.OFF;
78
public
EncryptionOptions
Options {
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (2)
3098
_parser.EncryptionOptions ==
EncryptionOptions
.LOGIN) {
3108
_parser.EncryptionOptions =
EncryptionOptions
.OFF; // Turn encryption off.