Skip to content

Conversation

@wfurt
Copy link
Member

@wfurt wfurt commented Feb 10, 2020

This got missed in #453. Since _queuedReadData is never written to, CheckOldKeyDecryptedData() will always return -1.

There may be an opportunity to simplify locking but for now, I only removed useless function and preserved ThrowIfExceptionalOrNotAuthenticated logic.

I also check 3.x code and _queuedReadData is only updated by EnqueueOldKeyDecryptedData. But since _pendingReHandshake is never set, that code is also effectively dead.

@wfurt wfurt added this to the 5.0 milestone Feb 10, 2020
@wfurt wfurt requested review from a team and stephentoub February 10, 2020 23:15
@wfurt wfurt self-assigned this Feb 10, 2020
@wfurt wfurt merged commit 1397c85 into dotnet:master Feb 12, 2020
@wfurt wfurt deleted the oldKey branch February 12, 2020 22:51
@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants