You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 9, 2023. It is now read-only.
I wonder if we can also do ALPN extension support by doing a small hack here. That would help us to jump start working on HTTP/2, since almost all servers use ALPN along with HTTP/2 over TLS. Currently I don't see ALPN support going to be added to SslStream anytime soon.
dotnet/corefx#4721
I haven't done much research, but in my understanding all we need to is to add the ALPN extension in client hello and read the selected protocol from server hello extension. So if we can read server hello, then the difficulty would be inserting the ALPN extension to the client hello. May be it can be done by using our own insert stream (like peek stream) over the server buffered stream. So when we call AuthenticateAsClient, we will pass our insert stream to modify the client hello before sending it to server.
Again just a thought, I am not sure if there is any type of data integrity check associated with client hello. So..