avoid ProtocolToken allocations in TLS handshake (#86163)
authorTomas Weinfurt <tweinfurt@yahoo.com>
Thu, 18 May 2023 05:42:35 +0000 (22:42 -0700)
committerGitHub <noreply@github.com>
Thu, 18 May 2023 05:42:35 +0000 (22:42 -0700)
commit16fc92fef48a98aa474bd1f07ec96a44b7da77be
treead0b8d401344a59c39dc744d0ff0091c50cc1743
parent8c637de325578398894d482f4855d0db4af78dbb
avoid ProtocolToken allocations in TLS handshake (#86163)

* avoild ProtocolToken allocations in TLS handshake

* cleanup

* UnitTests

* feedback from review
src/libraries/System.Net.Security/src/System/Net/Security/SslStream.Android.cs
src/libraries/System.Net.Security/src/System/Net/Security/SslStream.IO.cs
src/libraries/System.Net.Security/src/System/Net/Security/SslStream.Protocol.cs
src/libraries/System.Net.Security/src/System/Net/Security/SslStream.cs
src/libraries/System.Net.Security/tests/UnitTests/Fakes/FakeSslStream.Implementation.cs