From 44f5723ad31e698f224d661d7cd2ed439e85b86c Mon Sep 17 00:00:00 2001 From: Tom Dykstra Date: Fri, 26 Jun 2020 09:51:53 -0700 Subject: [PATCH] sslprotocols update (#4410) --- .../VS_Snippets_Remoting/NclSslClientAsync/CS/clientasync.cs | 2 +- .../VS_Snippets_Remoting/NclSslServerAsync/CS/serverasync.cs | 2 +- .../VS_Snippets_Remoting/NclSslClientAsync/VB/clientasync.vb | 2 +- xml/System.Security.Authentication/SslProtocols.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/snippets/csharp/VS_Snippets_Remoting/NclSslClientAsync/CS/clientasync.cs b/samples/snippets/csharp/VS_Snippets_Remoting/NclSslClientAsync/CS/clientasync.cs index 774a7fb4220..292da235d67 100644 --- a/samples/snippets/csharp/VS_Snippets_Remoting/NclSslClientAsync/CS/clientasync.cs +++ b/samples/snippets/csharp/VS_Snippets_Remoting/NclSslClientAsync/CS/clientasync.cs @@ -215,7 +215,7 @@ public static int Main(string[] args) sslStream.BeginAuthenticateAsClient( serverName, clientCertificates, - SslProtocols.Ssl3, + SslProtocols.None, true, new AsyncCallback(AuthenticateCallback), sslStream); diff --git a/samples/snippets/csharp/VS_Snippets_Remoting/NclSslServerAsync/CS/serverasync.cs b/samples/snippets/csharp/VS_Snippets_Remoting/NclSslServerAsync/CS/serverasync.cs index 67b4374f651..194d71bec85 100644 --- a/samples/snippets/csharp/VS_Snippets_Remoting/NclSslServerAsync/CS/serverasync.cs +++ b/samples/snippets/csharp/VS_Snippets_Remoting/NclSslServerAsync/CS/serverasync.cs @@ -192,7 +192,7 @@ void ProcessClient (ClientState state, X509Certificate serverCertificate) try { state.stream.BeginAuthenticateAsServer (serverCertificate, - true, SslProtocols.Tls, true, + true, SslProtocols.None, true, new AsyncCallback(AuthenticateCallback), state); } diff --git a/samples/snippets/visualbasic/VS_Snippets_Remoting/NclSslClientAsync/VB/clientasync.vb b/samples/snippets/visualbasic/VS_Snippets_Remoting/NclSslClientAsync/VB/clientasync.vb index 7a7c8129c27..6d972e1d6ac 100644 --- a/samples/snippets/visualbasic/VS_Snippets_Remoting/NclSslClientAsync/VB/clientasync.vb +++ b/samples/snippets/visualbasic/VS_Snippets_Remoting/NclSslClientAsync/VB/clientasync.vb @@ -189,7 +189,7 @@ Namespace Examples.Ssl ' The server name must match the name on the server certificate. sslStream.BeginAuthenticateAsClient( serverName, clientCertificates, - SslProtocols.Ssl3, True, + SslProtocols.None, True, New AsyncCallback(AddressOf AuthenticateCallback), sslStream) ' User can press a key to exit application, or let the diff --git a/xml/System.Security.Authentication/SslProtocols.xml b/xml/System.Security.Authentication/SslProtocols.xml index f9fc7dcebe6..ce3505a9199 100644 --- a/xml/System.Security.Authentication/SslProtocols.xml +++ b/xml/System.Security.Authentication/SslProtocols.xml @@ -252,7 +252,7 @@ 192 - Specifies the TLS 1.0 security protocol. The TLS protocol is defined in IETF RFC 2246. + Specifies the TLS 1.0 security protocol. TLS 1.0 is provided for backward compatibility only. The TLS protocol is defined in IETF RFC 2246.