Skip to content
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

Update error code when certificate validation fails in managed SNI #1130

Merged
merged 3 commits into from Jul 13, 2021
Merged

Update error code when certificate validation fails in managed SNI #1130

merged 3 commits into from Jul 13, 2021

Conversation

johnnypham
Copy link
Contributor

Fixes #1118

Managed SNI errors are given a nativeError of zero, which is used for SqlException.Number. nativeError should be consistent with the same error produced in sni.dll.

@cheenamalhotra cheenamalhotra added this to In progress in SqlClient v4.0 via automation Jul 5, 2021
@cheenamalhotra cheenamalhotra added this to the 4.0.0-preview1 milestone Jul 5, 2021
@JRahnama
Copy link
Member

JRahnama commented Jul 6, 2021

LGTM. Couple of minor suggestions.

Johnny Pham and others added 2 commits July 6, 2021 13:18
…ent/SNI/SNITcpHandle.cs

Co-authored-by: Javad <v-jarahn@microsoft.com>
SqlClient v4.0 automation moved this from In progress to Reviewer approved Jul 13, 2021
@cheenamalhotra cheenamalhotra merged commit c9aa89f into dotnet:main Jul 13, 2021
SqlClient v4.0 automation moved this from Reviewer approved to Done Jul 13, 2021
@johnnypham johnnypham deleted the issue1118 branch July 15, 2021 00:06
DavoudEshtehari pushed a commit to Wraith2/SqlClient that referenced this pull request Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Issue with System.Data.SqlClient.SqlException differences between Win/Mac Fx/Core
3 participants