Skip to content

Commit 4bce7de

Browse files
author
SqlClient Azure DevOps
committed
Merge in 'main' changes
2 parents abff663 + 68d35bb commit 4bce7de

File tree

78 files changed

+578
-340
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+578
-340
lines changed

src/Microsoft.Data.SqlClient/netcore/src/Common/src/CoreLib/Interop/Windows/Kernel32/Interop.CloseHandle.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
#if !NET8_0_OR_GREATER
6+
57
using System;
68
using System.Runtime.InteropServices;
79

@@ -13,3 +15,5 @@ internal partial class Kernel32
1315
internal static extern bool CloseHandle(IntPtr handle);
1416
}
1517
}
18+
19+
#endif

src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Unix/Interop.Libraries.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
#if !NET8_0_OR_GREATER
6+
57
internal static partial class Interop
68
{
79
internal static partial class Libraries
@@ -10,3 +12,5 @@ internal static partial class Libraries
1012
internal const string NetSecurityNative = "System.Net.Security.Native";
1113
}
1214
}
15+
16+
#endif

src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Unix/System.Net.Security.Native/Interop.GssApiException.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
using Microsoft.Data;
5+
#if !NET8_0_OR_GREATER
6+
67
using System;
78
using System.Runtime.InteropServices;
9+
using Microsoft.Data;
810

911
internal static partial class Interop
1012
{
@@ -56,3 +58,5 @@ private static string GetGssApiDisplayStatus(Status status, bool isMinor)
5658
}
5759
}
5860
}
61+
62+
#endif

src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Unix/System.Net.Security.Native/Interop.GssBuffer.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
using Microsoft.Data;
5+
#if !NET8_0_OR_GREATER
6+
67
using System;
78
using System.Diagnostics;
89
using System.Runtime.InteropServices;
10+
using Microsoft.Data;
911

1012
internal static partial class Interop
1113
{
@@ -74,3 +76,5 @@ static GssBuffer()
7476
}
7577
}
7678
}
79+
80+
#endif

src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Unix/System.Net.Security.Native/Interop.NetSecurityNative.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
#if !NET8_0_OR_GREATER
6+
57
using System;
6-
using System.Diagnostics;
78
using System.Runtime.InteropServices;
89
using Microsoft.Win32.SafeHandles;
910

@@ -126,3 +127,5 @@ static NetSecurityNative()
126127
}
127128
}
128129
}
130+
131+
#endif

src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/Crypt32/Interop.certificates.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
#if !NET8_0_OR_GREATER
6+
57
using System;
68
using System.Runtime.InteropServices;
79

@@ -24,3 +26,5 @@ internal static extern bool CertVerifyCertificateChainPolicy(
2426
[In, Out] ref CERT_CHAIN_POLICY_STATUS pPolicyStatus);
2527
}
2628
}
29+
30+
#endif

src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/Crypt32/Interop.certificates_types.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
#if !NET8_0_OR_GREATER
6+
57
using System;
68
using System.Runtime.InteropServices;
79

@@ -125,3 +127,5 @@ internal unsafe struct CERT_CHAIN_POLICY_STATUS
125127
}
126128
}
127129
}
130+
131+
#endif

src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/SChannel/Interop.SECURITY_STATUS.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
#if !NET8_0_OR_GREATER
6+
57
internal static partial class Interop
68
{
79
internal enum SECURITY_STATUS
@@ -358,3 +360,5 @@ internal static string MapSecurityStatus(uint statusCode)
358360
}
359361
#endif // TRACE_VERBOSE
360362
}
363+
364+
#endif // !NET8_OR_GREATER

src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/SChannel/SecPkgContext_ConnectionInfo.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
using System.Diagnostics;
5+
#if !NET8_0_OR_GREATER
6+
67
using System.Runtime.InteropServices;
78

89
namespace System.Net
@@ -45,3 +46,5 @@ internal unsafe SecPkgContext_ConnectionInfo(byte[] nativeBuffer)
4546
}
4647
}
4748
}
49+
50+
#endif

src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/GlobalSSPI.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
#if !NET8_0_OR_GREATER
6+
57
namespace System.Net
68
{
79
internal static class GlobalSSPI
@@ -10,3 +12,5 @@ internal static class GlobalSSPI
1012
internal static readonly SSPIInterface SSPISecureChannel = new SSPISecureChannelType();
1113
}
1214
}
15+
16+
#endif

0 commit comments

Comments
 (0)