-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Populate DataHash key size in SslConnectionInfo #4169
Conversation
25133a1 to
a8716e4
Compare
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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...)
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
|
LGTM |
8c10ea0 to
12e22c7
Compare
|
@dotnet-bot test this please |
474ec26 to
92ec4d8
Compare
Populate DataHash key size in SslConnectionInfo
Populate DataHash key size in SslConnectionInfo Commit migrated from dotnet/corefx@b258863
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.