Throw during renegotiation if there is incomplete received TLS frame (#64066)
authorRadek Zikmund <32671551+rzikm@users.noreply.github.com>
Fri, 28 Jan 2022 09:02:40 +0000 (10:02 +0100)
committerGitHub <noreply@github.com>
Fri, 28 Jan 2022 09:02:40 +0000 (10:02 +0100)
commit11bf8a782d27dd0f614dd0da03b27ab025933320
treeeeca1e3fec4962da2dd50627e4dffb54c1da08ed
parent953fd351ae1c5c8c11ba865b3613b63f8f774624
Throw during renegotiation if there is incomplete received TLS frame (#64066)

We need to check both if there is unread data from previous TLS frame, or if there is incomplete incoming TLS frame
src/libraries/Common/tests/System/Net/ManualChunkingStream.cs [new file with mode: 0644]
src/libraries/System.Net.Security/src/System/Net/Security/SslStream.Implementation.cs
src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamNetworkStreamTest.cs
src/libraries/System.Net.Security/tests/FunctionalTests/System.Net.Security.Tests.csproj