Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@ namespace System.Net
{
// This class is used to determine if NTLM or
// Kerberos are used in the context of a Negotiate handshake
internal class NegotiationInfoClass
internal partial class NegotiationInfoClass
{
internal const string NTLM = "NTLM";
internal const string Kerberos = "Kerberos";
internal const string WDigest = "WDigest";
internal const string Negotiate = "Negotiate";
internal string AuthenticationPackage;

internal NegotiationInfoClass(SafeHandle safeHandle, int negotiationState)
Expand Down
9 changes: 6 additions & 3 deletions src/System.Net.Security/src/System.Net.Security.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,15 @@
<Compile Include="System\Net\SecureProtocols\ProtectionLevel.cs" />

<!-- NegotiateStream -->
<Compile Include="System\Net\ContextFlagsPal.cs" />
<Compile Include="System\Net\NTAuthentication.cs" />
<Compile Include="System\Net\SSPIHandleCache.cs" />
<Compile Include="System\Net\StreamFramer.cs" />
<Compile Include="System\Net\SecureProtocols\BufferAsyncResult.cs" />
<Compile Include="System\Net\SecureProtocols\NegotiateStream.cs" />
<Compile Include="System\Net\SecureProtocols\InternalNegoState.cs" />
<Compile Include="System\Net\SecureProtocols\InternalNegotiateStream.cs" />
<Compile Include="System\Net\NegotiationInfoClass.cs" />

<Compile Include="System\Security\Authentication\ExtendedProtection\ExtendedProtectionPolicy.cs" />
<Compile Include="System\Security\Authentication\ExtendedProtection\PolicyEnforcement.cs" />
Expand Down Expand Up @@ -143,10 +149,7 @@
<Compile Include="System\Net\CertificateValidationPal.Windows.cs" />

<!-- NegotiateStream -->
<Compile Include="System\Net\NTAuthentication.cs" />
<Compile Include="System\Net\SpnDictionary.cs" />
<Compile Include="System\Net\SSPIHandleCache.cs" />
<Compile Include="System\Net\StreamFramer.cs" />
<Compile Include="System\Net\SecureProtocols\NegoState.Windows.cs" />

<!-- Interop -->
Expand Down
34 changes: 34 additions & 0 deletions src/System.Net.Security/src/System/Net/ContextFlagsPal.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;

namespace System.Net
{
[Flags]
internal enum ContextFlagsPal
{
Zero = 0,
Delegate = 0x00000001,
MutualAuth = 0x00000002,
ReplayDetect = 0x00000004,
SequenceDetect = 0x00000008,
Confidentiality = 0x00000010,
UseSessionKey = 0x00000020,
AllocateMemory = 0x00000100,
Connection = 0x00000800,
InitExtendedError = 0x00004000,
AcceptExtendedError = 0x00008000,
InitStream = 0x00008000,
AcceptStream = 0x00010000,
InitIntegrity = 0x00010000,
AcceptIntegrity = 0x00020000,
InitManualCredValidation = 0x00080000,
InitUseSuppliedCreds = 0x00000080,
InitIdentify = 0x00020000,
AcceptIdentify = 0x00080000,
ProxyBindings = 0x04000000,
AllowMissingBindings = 0x10000000,
UnverifiedTargetName = 0x20000000,
}
}
Loading