Skip to content

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

Merged
cheenamalhotra merged 3 commits into
dotnet:mainfrom
johnnypham:issue1118
Jul 13, 2021
Merged

Update error code when certificate validation fails in managed SNI#1130
cheenamalhotra merged 3 commits into
dotnet:mainfrom
johnnypham:issue1118

Conversation

@johnnypham

Copy link
Copy Markdown
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.

Comment thread src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIError.cs Outdated
@JRahnama

JRahnama commented Jul 6, 2021

Copy link
Copy Markdown
Contributor

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants