propagate TLS alerts from OS layers (dotnet/corefx#41967)
authorTomas Weinfurt <tweinfurt@yahoo.com>
Wed, 13 Nov 2019 21:50:57 +0000 (13:50 -0800)
committerGitHub <noreply@github.com>
Wed, 13 Nov 2019 21:50:57 +0000 (13:50 -0800)
commit35c27fb79a0062e676d28910b9900dd71fe16a2d
tree47bfd36098639858a941453ea372ac415b132b3e
parentca73ff2836e66f73e48226366015e1a8852903ec
propagate TLS alerts from OS layers  (dotnet/corefx#41967)

* initial alerts with openssl

* get alerts from schannel

* update tests to work with openssl 1.1.x

* fix ClientAsyncAuthenticate_ServerNoEncryption_NoConnect to work properly with Tls13

* remove extra comment

* feedback from review

* feedback from review

* remove unused variable

Commit migrated from https://github.com/dotnet/corefx/commit/784cb6b5b7e947d3a69c7183847652a0e9335ff0
src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.OpenSsl.cs
src/libraries/Common/src/Interop/Windows/SspiCli/SecuritySafeHandles.cs
src/libraries/System.Net.Security/src/System/Net/Security/SslStreamPal.Unix.cs
src/libraries/System.Net.Security/src/System/Net/Security/SslStreamPal.Windows.cs
src/libraries/System.Net.Security/tests/FunctionalTests/ClientAsyncAuthenticateTest.cs
src/libraries/System.Net.Security/tests/FunctionalTests/ClientDefaultEncryptionTest.cs
src/libraries/System.Net.Security/tests/FunctionalTests/ServerAsyncAuthenticateTest.cs
src/libraries/System.Net.Security/tests/FunctionalTests/ServerNoEncryptionTest.cs
src/libraries/System.Net.Security/tests/FunctionalTests/ServerRequireEncryptionTest.cs
src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamAlpnTests.cs
src/libraries/System.Net.Security/tests/FunctionalTests/TestConfiguration.cs