Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Replace TlsStream type by using SslStream directly #106451

Merged
merged 5 commits into from
Aug 16, 2024

Conversation

rzikm
Copy link
Member

@rzikm rzikm commented Aug 15, 2024

Follow up after #106362.

The TlsStream type does not bring much useful behavior on top of plain SslStream, removing the type prevents issues like #99276 stemming from missing delegating overloads from resurfacing in the future.

Summary of changes:

  • Replace TlsStream usages with SslStream
  • Inline parameters for SslProtocols and Cert validation callback on AuthenticateAs* callsites
  • Removed TlsStream.cs

There was some extra plumbing necessary in case of System.Net.Requests where the code needs to manipulate the underlying NetworkStream (mainly accessing the Socket directly), so the original NetworkStream is being passed along as well where appropriate.

Copy link
Contributor

Tagging subscribers to this area: @dotnet/ncl, @bartonjs, @vcsjones
See info in area-owners.md if you want to be subscribed.

Copy link
Member

@MihaZupan MihaZupan left a comment

Choose a reason for hiding this comment

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

Good riddance, thank you

…eam.cs

Co-authored-by: Miha Zupan <mihazupan.zupan1@gmail.com>
Copy link
Member

@wfurt wfurt left a comment

Choose a reason for hiding this comment

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

LGTM. Hopefully we will have whole release to bake it.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants