-
Notifications
You must be signed in to change notification settings - Fork 314
Merge | TdsParserStateObjectNative #3631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mdaigle
merged 14 commits into
dotnet:main
from
edwardneal:merge/tdsparserstateobjectnative
Sep 29, 2025
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
34a7e94
netfx, netcore: move duplicate WritePacketCache class
edwardneal b0b54eb
netfx, netcore: sync comments and whitespace
edwardneal dadc19e
netcore: sync tracing
edwardneal 4cacea7
netcore: remove unused methods
edwardneal c111e6b
netfx: sync null coalescing operator usage
edwardneal 439eac1
netfx, netcore: cleanup SQLFallbackDNSCache call
edwardneal 3eddf97
netfx: remove unnecessary default values for CreatePhysicalSNIHandle …
edwardneal c30140c
netcore, netfx: sync SNIHandle construction
edwardneal b9e2bea
netcore: remove hardcoded SSL protocol flags
edwardneal b4a962c
netcore: sync timeouts of ReadSyncOverAsync
edwardneal d1d8fa7
netcore: sync server certificate filename marshalling
edwardneal 632b750
Merge TdsParserStateObjectNative
edwardneal 1e195f6
First code review response
edwardneal 2a3c83f
Add explicit handling of SNI-layer SSL protocols
edwardneal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
554 changes: 0 additions & 554 deletions
554
...crosoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObjectNative.cs
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/Microsoft.Data.SqlClient/src/Interop/Windows/Sni/SniSslProtocols.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
namespace Interop.Windows.Sni | ||
{ | ||
internal enum SniSslProtocols : uint | ||
{ | ||
// Protocol versions from native SNI | ||
SP_PROT_SSL2_SERVER = 0x00000004, | ||
paulmedynski marked this conversation as resolved.
Show resolved
Hide resolved
|
||
SP_PROT_SSL2_CLIENT = 0x00000008, | ||
SP_PROT_SSL3_SERVER = 0x00000010, | ||
SP_PROT_SSL3_CLIENT = 0x00000020, | ||
SP_PROT_TLS1_0_SERVER = 0x00000040, | ||
SP_PROT_TLS1_0_CLIENT = 0x00000080, | ||
SP_PROT_TLS1_1_SERVER = 0x00000100, | ||
SP_PROT_TLS1_1_CLIENT = 0x00000200, | ||
SP_PROT_TLS1_2_SERVER = 0x00000400, | ||
SP_PROT_TLS1_2_CLIENT = 0x00000800, | ||
SP_PROT_TLS1_3_SERVER = 0x00001000, | ||
SP_PROT_TLS1_3_CLIENT = 0x00002000, | ||
SP_PROT_NONE = 0x0, | ||
|
||
// Combinations for easier use when mapping to SslProtocols | ||
SP_PROT_SSL2 = SP_PROT_SSL2_SERVER | SP_PROT_SSL2_CLIENT, | ||
SP_PROT_SSL3 = SP_PROT_SSL3_SERVER | SP_PROT_SSL3_CLIENT, | ||
SP_PROT_TLS1_0 = SP_PROT_TLS1_0_SERVER | SP_PROT_TLS1_0_CLIENT, | ||
SP_PROT_TLS1_1 = SP_PROT_TLS1_1_SERVER | SP_PROT_TLS1_1_CLIENT, | ||
SP_PROT_TLS1_2 = SP_PROT_TLS1_2_SERVER | SP_PROT_TLS1_2_CLIENT, | ||
SP_PROT_TLS1_3 = SP_PROT_TLS1_3_SERVER | SP_PROT_TLS1_3_CLIENT, | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.