Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

@shrutigarg
Copy link
Contributor

this is an update on PR #3916 on top of Eric's shimming changes.
It includes one extra bug fix of updating signature change of QueryContextConnectionInfo.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're no longer returning an int, any reason not to change the out parameter to be the return value?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a PAL function, so the signature needs to match Windows. (Windows currently has a void return). If we did this we would need to update the Windows PAL function and the call site. (Not saying that we can't do that though...)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's why I like PAL interfaces vs PAL static implicit call conventions, personally.

@stephentoub
Copy link
Member

cc: @bartonjs, @eerhardt

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a null check for this new parameter before dereferencing it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see this check in the latest code. All that is needed is to change line 459 from

if (!ssl || !dataCipherAlg || !keyExchangeAlg || !dataHashAlg || !dataKeySize)

to

if (!ssl || !dataCipherAlg || !keyExchangeAlg || !dataHashAlg || !dataKeySize || !hashKeySize)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@stephentoub
Copy link
Member

LGTM

@shrutigarg shrutigarg force-pushed the ssl_new1 branch 4 times, most recently from 8c10ea0 to 12e22c7 Compare October 28, 2015 17:43
@shrutigarg
Copy link
Contributor Author

@dotnet-bot test this please

@shrutigarg shrutigarg force-pushed the ssl_new1 branch 5 times, most recently from 474ec26 to 92ec4d8 Compare October 29, 2015 09:25
stephentoub added a commit that referenced this pull request Oct 29, 2015
Populate DataHash key size in SslConnectionInfo
@stephentoub stephentoub merged commit b258863 into dotnet:master Oct 29, 2015
@karelz karelz modified the milestone: 1.0.0-rtm Dec 3, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Populate DataHash key size in SslConnectionInfo

Commit migrated from dotnet/corefx@b258863
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants