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

remove dead code from SslStream #32065

Merged
merged 2 commits into from
Feb 12, 2020
Merged

remove dead code from SslStream #32065

merged 2 commits into from
Feb 12, 2020

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 stephentoub and a team 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