Fix SslStream channel binding token (dotnet/corefx#34814)
authorDavid Shulman <david.shulman@microsoft.com>
Thu, 24 Jan 2019 21:45:39 +0000 (13:45 -0800)
committerGitHub <noreply@github.com>
Thu, 24 Jan 2019 21:45:39 +0000 (13:45 -0800)
commit87def4b9bc61f7c61ab4087636b67860508f945b
tree6311e9221461f872b87d930a9414b0d4658f3a0d
parente4b7670825f435f4134d8296015da70adafd4751
Fix SslStream channel binding token (dotnet/corefx#34814)

While working on Enterprise Scenario testing I discovered a bug in how the Unix layer generates
the channel binding token.  It was using the wrong prefix for 'Endpoint' tokens.

Fixed 'Endpoint' token generation and added more detailed tests.

Commit migrated from https://github.com/dotnet/corefx/commit/c6b4a1c39d91943dc536c3621d43d2bf88aca487
src/libraries/System.Net.Security/src/System/Net/Security/Pal.Managed/EndpointChannelBindingToken.cs
src/libraries/System.Net.Security/tests/FunctionalTests/TransportContextTest.cs