104 references to ContextFlags
System (104)
net\System\Net\_AuthenticationManagerBase.cs (4)
117
ContextFlags
clientFlags =
ContextFlags
.Connection |
ContextFlags
.InitIdentify;
125
SystemNetworkCredential.defaultCredential, null,
ContextFlags
.Connection, null);
net\System\Net\_NativeSSPI.cs (24)
29
int AcceptSecurityContext(ref SafeFreeCredentials credential, ref SafeDeleteContext context, SecurityBuffer inputBuffer,
ContextFlags
inFlags, Endianness endianness, SecurityBuffer outputBuffer, ref
ContextFlags
outFlags);
30
int AcceptSecurityContext(SafeFreeCredentials credential, ref SafeDeleteContext context, SecurityBuffer[] inputBuffers,
ContextFlags
inFlags, Endianness endianness, SecurityBuffer outputBuffer, ref
ContextFlags
outFlags);
31
int InitializeSecurityContext(ref SafeFreeCredentials credential, ref SafeDeleteContext context, string targetName,
ContextFlags
inFlags, Endianness endianness, SecurityBuffer inputBuffer, SecurityBuffer outputBuffer, ref
ContextFlags
outFlags);
32
int InitializeSecurityContext(SafeFreeCredentials credential, ref SafeDeleteContext context, string targetName,
ContextFlags
inFlags, Endianness endianness, SecurityBuffer[] inputBuffers, SecurityBuffer outputBuffer, ref
ContextFlags
outFlags);
81
public int AcceptSecurityContext(ref SafeFreeCredentials credential, ref SafeDeleteContext context, SecurityBuffer inputBuffer,
ContextFlags
inFlags, Endianness endianness, SecurityBuffer outputBuffer, ref
ContextFlags
outFlags) {
85
public int AcceptSecurityContext(SafeFreeCredentials credential, ref SafeDeleteContext context, SecurityBuffer[] inputBuffers,
ContextFlags
inFlags, Endianness endianness, SecurityBuffer outputBuffer, ref
ContextFlags
outFlags) {
89
public int InitializeSecurityContext(ref SafeFreeCredentials credential, ref SafeDeleteContext context, string targetName,
ContextFlags
inFlags, Endianness endianness, SecurityBuffer inputBuffer, SecurityBuffer outputBuffer, ref
ContextFlags
outFlags) {
93
public int InitializeSecurityContext(SafeFreeCredentials credential, ref SafeDeleteContext context, string targetName,
ContextFlags
inFlags, Endianness endianness, SecurityBuffer[] inputBuffers, SecurityBuffer outputBuffer, ref
ContextFlags
outFlags) {
243
public int AcceptSecurityContext(ref SafeFreeCredentials credential, ref SafeDeleteContext context, SecurityBuffer inputBuffer,
ContextFlags
inFlags, Endianness endianness, SecurityBuffer outputBuffer, ref
ContextFlags
outFlags) {
247
public int AcceptSecurityContext(SafeFreeCredentials credential, ref SafeDeleteContext context, SecurityBuffer[] inputBuffers,
ContextFlags
inFlags, Endianness endianness, SecurityBuffer outputBuffer, ref
ContextFlags
outFlags) {
251
public int InitializeSecurityContext(ref SafeFreeCredentials credential, ref SafeDeleteContext context, string targetName,
ContextFlags
inFlags, Endianness endianness, SecurityBuffer inputBuffer, SecurityBuffer outputBuffer, ref
ContextFlags
outFlags) {
255
public int InitializeSecurityContext(SafeFreeCredentials credential, ref SafeDeleteContext context, string targetName,
ContextFlags
inFlags, Endianness endianness, SecurityBuffer[] inputBuffers, SecurityBuffer outputBuffer, ref
ContextFlags
outFlags) {
net\System\Net\_NTAuthentication.cs (22)
145
private
ContextFlags
m_RequestedContextFlags;
146
private
ContextFlags
m_ContextFlags;
194
return (m_ContextFlags &
ContextFlags
.Confidentiality) != 0;
200
return (m_ContextFlags & (m_IsServer?
ContextFlags
.AcceptIntegrity:
ContextFlags
.InitIntegrity)) != 0;
206
return (m_ContextFlags &
ContextFlags
.MutualAuth) != 0;
212
return (m_ContextFlags &
ContextFlags
.Delegate) != 0;
218
return (m_ContextFlags & (m_IsServer?
ContextFlags
.AcceptIdentify:
ContextFlags
.InitIdentify)) != 0;
353
private static
ContextFlags
GetHttpContextFlags(WebRequest request, bool trustedSpn)
355
ContextFlags
contextFlags =
ContextFlags
.Connection;
360
contextFlags |=
ContextFlags
.InitIdentify;
362
contextFlags |=
ContextFlags
.Delegate;
365
contextFlags |=
ContextFlags
.MutualAuth;
369
contextFlags |=
ContextFlags
.UnverifiedTargetName;
380
internal NTAuthentication(bool isServer, string package, NetworkCredential credential, string spn,
ContextFlags
requestedContextFlags, ContextAwareResult context, ChannelBinding channelBinding)
431
internal NTAuthentication(bool isServer, string package, NetworkCredential credential, string spn,
ContextFlags
requestedContextFlags, ChannelBinding channelBinding) {
439
internal NTAuthentication(bool isServer, string package, string spn,
ContextFlags
requestedContextFlags, ChannelBinding channelBinding)
457
internal InitializeCallbackContext(NTAuthentication thisPtr, bool isServer, string package, NetworkCredential credential, string spn,
ContextFlags
requestedContextFlags, ChannelBinding channelBinding)
473
internal readonly
ContextFlags
requestedContextFlags;
484
private void Initialize(bool isServer, string package, NetworkCredential credential, string spn,
ContextFlags
requestedContextFlags, ChannelBinding channelBinding) {
net\System\Net\_SafeNetHandles.cs (10)
1440
ContextFlags
inFlags,
1445
ref
ContextFlags
outFlags)
1493
bool isSspiAllocated = (inFlags &
ContextFlags
.AllocateMemory) != 0 ? true : false;
1650
ContextFlags
inFlags,
1655
ref
ContextFlags
attributes,
1767
ContextFlags
inFlags,
1772
ref
ContextFlags
outFlags) {
1818
bool isSspiAllocated = (inFlags &
ContextFlags
.AllocateMemory) != 0 ? true : false;
1969
ContextFlags
inFlags,
1973
ref
ContextFlags
outFlags,
net\System\Net\_SecureChannel.cs (12)
35
private const
ContextFlags
RequiredFlags =
36
ContextFlags
.ReplayDetect |
37
ContextFlags
.SequenceDetect |
38
ContextFlags
.Confidentiality|
39
ContextFlags
.AllocateMemory;
42
private const
ContextFlags
ServerRequiredFlags =
44
|
ContextFlags
.AcceptStream
58
private
ContextFlags
m_Attributes;
981
ServerRequiredFlags | (m_RemoteCertRequired?
ContextFlags
.MutualAuth:
ContextFlags
.Zero),
998
RequiredFlags |
ContextFlags
.InitManualCredValidation,
1025
RequiredFlags |
ContextFlags
.InitManualCredValidation,
net\System\Net\_SSPIWrapper.cs (8)
228
internal static int InitializeSecurityContext(SSPIInterface SecModule, ref SafeFreeCredentials credential, ref SafeDeleteContext context, string targetName,
ContextFlags
inFlags, Endianness datarep, SecurityBuffer inputBuffer, SecurityBuffer outputBuffer, ref
ContextFlags
outFlags) {
243
internal static int InitializeSecurityContext(SSPIInterface SecModule, SafeFreeCredentials credential, ref SafeDeleteContext context, string targetName,
ContextFlags
inFlags, Endianness datarep, SecurityBuffer[] inputBuffers, SecurityBuffer outputBuffer, ref
ContextFlags
outFlags) {
258
internal static int AcceptSecurityContext(SSPIInterface SecModule, ref SafeFreeCredentials credential, ref SafeDeleteContext context,
ContextFlags
inFlags, Endianness datarep, SecurityBuffer inputBuffer, SecurityBuffer outputBuffer, ref
ContextFlags
outFlags)
274
internal static int AcceptSecurityContext(SSPIInterface SecModule, SafeFreeCredentials credential, ref SafeDeleteContext context,
ContextFlags
inFlags, Endianness datarep, SecurityBuffer[] inputBuffers, SecurityBuffer outputBuffer, ref
ContextFlags
outFlags)
net\System\Net\HttpListener.cs (5)
2192
private
ContextFlags
GetContextFlags(ExtendedProtectionPolicy policy, bool isSecureConnection)
2194
ContextFlags
result =
ContextFlags
.Connection;
2199
result |=
ContextFlags
.AllowMissingBindings;
2203
result |=
ContextFlags
.ProxyBindings;
net\System\Net\mail\SmtpDigestAuthenticationModule.cs (1)
51
this.sessions[sessionCookie] = clientContext = new NTAuthentication(false, "WDigest", credential, spn,
ContextFlags
.Connection, channelBindingToken);
net\System\Net\mail\SmtpNegotiateAuthenticationModule.cs (2)
48
ContextFlags
.Connection |
ContextFlags
.InitIntegrity, channelBindingToken);
net\System\Net\mail\SmtpNtlmAuthenticationModule.cs (1)
51
new NTAuthentication(false, "Ntlm", credential, spn,
ContextFlags
.Connection, channelBindingToken);
net\System\Net\SecureProtocols\_NegoState.cs (11)
170
ContextFlags
flags =
ContextFlags
.Connection;
180
flags |=
ContextFlags
.Confidentiality;
185
flags |=
ContextFlags
.ReplayDetect |
ContextFlags
.SequenceDetect |
ContextFlags
.InitIntegrity;
190
if (_ExtendedProtectionPolicy.PolicyEnforcement == PolicyEnforcement.WhenSupported) { flags |=
ContextFlags
.AllowMissingBindings; }
194
flags |=
ContextFlags
.ProxyBindings;
200
if (protectionLevel != ProtectionLevel.None) {flags |=
ContextFlags
.MutualAuth;}
201
if (impersonationLevel == TokenImpersonationLevel.Identification) {flags |=
ContextFlags
.InitIdentify;}
202
if (impersonationLevel == TokenImpersonationLevel.Delegation) {flags |=
ContextFlags
.Delegate;}
net\System\Net\UnsafeNativeMethods.cs (4)
504
[In]
ContextFlags
inFlags,
508
[In, Out] ref
ContextFlags
attributes,
591
[In]
ContextFlags
inFlags,
598
[In, Out] ref
ContextFlags
attributes,