More generic TlsHandler
- Dominant language
- C#
- Stars
- 4.3k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
This maybe unrelated, but from my understanding TlsHandler is doing some manual SSL protocol inspection in order to make existing SslStream work in the context of chunk based receive and send operation of channels. (Receive is looking good, but it seems send operation is queuing all objects and doing the encryption at the end or something?)
In the old days, I was using SSPI to do the similar thing to implement SSL in my custom socket based server. But now I want to port my code to .NET Core (so it works in linux), and want to use this piece of code (TlsHandler and SniHandler), but there are just too tight coupling which I haven't fully understood yet.
Is it possible to make TlsHandler more generic? Like SSPI, allowing us to handshake and encrypt/decrypt arbitrary chunks of bytes?
I would appreciate if you guide me in the right direction, thank you!
Contributor guide
Assessment
This issue has not been assessed yet.