Skip to content

Commit

Permalink
Merge 21ff396 into ea7ad53
Browse files Browse the repository at this point in the history
  • Loading branch information
benrr101 authored Apr 17, 2024
2 parents ea7ad53 + 21ff396 commit d4cacd2
Show file tree
Hide file tree
Showing 78 changed files with 578 additions and 340 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if !NET8_0_OR_GREATER

using System;
using System.Runtime.InteropServices;

Expand All @@ -13,3 +15,5 @@ internal partial class Kernel32
internal static extern bool CloseHandle(IntPtr handle);
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if !NET8_0_OR_GREATER

internal static partial class Interop
{
internal static partial class Libraries
Expand All @@ -10,3 +12,5 @@ internal static partial class Libraries
internal const string NetSecurityNative = "System.Net.Security.Native";
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using Microsoft.Data;
#if !NET8_0_OR_GREATER

using System;
using System.Runtime.InteropServices;
using Microsoft.Data;

internal static partial class Interop
{
Expand Down Expand Up @@ -56,3 +58,5 @@ private static string GetGssApiDisplayStatus(Status status, bool isMinor)
}
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using Microsoft.Data;
#if !NET8_0_OR_GREATER

using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Microsoft.Data;

internal static partial class Interop
{
Expand Down Expand Up @@ -74,3 +76,5 @@ static GssBuffer()
}
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if !NET8_0_OR_GREATER

using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Microsoft.Win32.SafeHandles;

Expand Down Expand Up @@ -126,3 +127,5 @@ static NetSecurityNative()
}
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if !NET8_0_OR_GREATER

using System;
using System.Runtime.InteropServices;

Expand All @@ -24,3 +26,5 @@ internal static extern bool CertVerifyCertificateChainPolicy(
[In, Out] ref CERT_CHAIN_POLICY_STATUS pPolicyStatus);
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if !NET8_0_OR_GREATER

using System;
using System.Runtime.InteropServices;

Expand Down Expand Up @@ -125,3 +127,5 @@ internal unsafe struct CERT_CHAIN_POLICY_STATUS
}
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if !NET8_0_OR_GREATER

internal static partial class Interop
{
internal enum SECURITY_STATUS
Expand Down Expand Up @@ -358,3 +360,5 @@ internal static string MapSecurityStatus(uint statusCode)
}
#endif // TRACE_VERBOSE
}

#endif // !NET8_OR_GREATER
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System.Diagnostics;
#if !NET8_0_OR_GREATER

using System.Runtime.InteropServices;

namespace System.Net
Expand Down Expand Up @@ -45,3 +46,5 @@ internal unsafe SecPkgContext_ConnectionInfo(byte[] nativeBuffer)
}
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if !NET8_0_OR_GREATER

namespace System.Net
{
internal static class GlobalSSPI
Expand All @@ -10,3 +12,5 @@ internal static class GlobalSSPI
internal static readonly SSPIInterface SSPISecureChannel = new SSPISecureChannelType();
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if !NET8_0_OR_GREATER

using System;
using System.Net.Security;
using System.Runtime.InteropServices;
Expand Down Expand Up @@ -388,3 +390,5 @@ internal static extern unsafe SECURITY_STATUS SspiEncodeStringsAsAuthIdentity(
[Out] out SafeSspiAuthDataHandle authData);
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if !NET8_0_OR_GREATER

using System.Runtime.InteropServices;

namespace System.Net
Expand Down Expand Up @@ -59,3 +61,5 @@ internal NegotiationInfoClass(SafeHandle safeHandle, int negotiationState)
}
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if !NET8_0_OR_GREATER

using System.Net.Security;
using System.Runtime.InteropServices;
using Microsoft.Data;
Expand Down Expand Up @@ -199,3 +201,5 @@ public int ApplyControlToken(ref SafeDeleteContext refContext, SecurityBuffer[]
}
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if !NET8_0_OR_GREATER

using System.Net.Security;
using System.Runtime.InteropServices;

Expand Down Expand Up @@ -30,3 +32,5 @@ internal interface SSPIInterface
int ApplyControlToken(ref SafeDeleteContext refContext, SecurityBuffer[] inputBuffers);
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if !NET8_0_OR_GREATER

using System.Net.Security;
using System.Runtime.InteropServices;
using Microsoft.Data;
Expand Down Expand Up @@ -155,3 +157,5 @@ public int ApplyControlToken(ref SafeDeleteContext refContext, SecurityBuffer[]
}
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if !NET8_0_OR_GREATER

using System.ComponentModel;
using System.Globalization;
using System.Net.Security;
Expand Down Expand Up @@ -595,3 +597,5 @@ public static string ErrorDescription(int errorCode)
}
} // class SSPIWrapper
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using Microsoft.Win32.SafeHandles;
#if !NET8_0_OR_GREATER

using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Security.Authentication.ExtendedProtection;

namespace System.Net.Security
{
Expand Down Expand Up @@ -53,3 +51,5 @@ public override string ToString()
#endif
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if !NET8_0_OR_GREATER

using System.Runtime.InteropServices;

namespace System.Net
Expand All @@ -14,3 +16,5 @@ internal struct SecPkgContext_Bindings
internal IntPtr Bindings;
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if !NET8_0_OR_GREATER

using System.Runtime.InteropServices;

namespace System.Net
Expand All @@ -14,3 +16,5 @@ internal struct SecPkgContext_NegotiationInfoW
internal uint NegotiationState;
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System.Diagnostics;
#if !NET8_0_OR_GREATER

using System.Runtime.InteropServices;

namespace System.Net
Expand Down Expand Up @@ -40,3 +41,5 @@ internal unsafe SecPkgContext_Sizes(byte[] memory)
public static readonly int SizeOf = Marshal.SizeOf<SecPkgContext_Sizes>();
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System.Diagnostics;
#if !NET8_0_OR_GREATER

using System.Runtime.InteropServices;

namespace System.Net
Expand Down Expand Up @@ -42,3 +43,5 @@ internal unsafe SecPkgContext_StreamSizes(byte[] memory)
public static readonly int SizeOf = Marshal.SizeOf<SecPkgContext_StreamSizes>();
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if !NET8_0_OR_GREATER

using System.Runtime.InteropServices;

namespace System.Net
Expand All @@ -18,3 +20,5 @@ internal struct SecurityPackageInfo
internal IntPtr Comment;
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if !NET8_0_OR_GREATER

using System.Globalization;
using System.Runtime.InteropServices;

Expand Down Expand Up @@ -76,3 +78,5 @@ public override string ToString()
}
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using Microsoft.Win32.SafeHandles;
#if !NET8_0_OR_GREATER

using System.Diagnostics;
using System.Globalization;
using System.Runtime.InteropServices;
using System.Security.Authentication.ExtendedProtection;
using Microsoft.Win32.SafeHandles;

namespace System.Net.Security
{
Expand Down Expand Up @@ -1279,3 +1280,5 @@ protected override bool ReleaseHandle()
}
}
}

#endif // !NET8_OR_GREATER
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if !NET8_0_OR_GREATER

using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
Expand Down Expand Up @@ -135,3 +137,5 @@ protected override bool ReleaseHandle()
}
}
}

#endif
Loading

0 comments on commit d4cacd2

Please sign in to comment.