HttpsClientStream.cs: Honor ServicePointManager.SecurityProtocol to select between...
authorSebastien Pouliot <sebastien@ximian.com>
Thu, 7 Sep 2006 13:52:34 +0000 (13:52 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Thu, 7 Sep 2006 13:52:34 +0000 (13:52 -0000)
svn path=/trunk/mcs/; revision=65054

mcs/class/Mono.Security/Mono.Security.Protocol.Tls/ChangeLog
mcs/class/Mono.Security/Mono.Security.Protocol.Tls/HttpsClientStream.cs

index cad315e10a6385a8c65cc942dd5565d5cfca8bdd..85b117e2551f168c1c964b2a613d2d75990b13f0 100644 (file)
@@ -1,3 +1,8 @@
+2006-09-07  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * HttpsClientStream.cs: Honor ServicePointManager.SecurityProtocol to
+       select between SSL3, TLS1 or, by default, auto. Great for testing :)
+
 2006-06-08  Sebastien Pouliot  <sebastien@ximian.com>
 
        * ClientRecordProtocol.cs: Avoid a NRE when the server request a
index 1f3bf88a41cb919177f80ec8be5a0f6254d939df..06b823e43a1746b953bca872fdd3517607306788 100644 (file)
@@ -5,7 +5,7 @@
 // Author:
 //      Sebastien Pouliot  <sebastien@ximian.com>
 //
-// Copyright (C) 2004-2005 Novell, Inc. (http://www.novell.com)
+// Copyright (C) 2004-2006 Novell, Inc. (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -43,7 +43,8 @@ namespace Mono.Security.Protocol.Tls {
 
                 public HttpsClientStream (Stream stream, X509CertificateCollection clientCertificates,
                                        HttpWebRequest request, byte [] buffer)
-                        : base (stream, request.RequestUri.Host, false, SecurityProtocolType.Default, clientCertificates)
+                        : base (stream, request.RequestUri.Host, false, (Mono.Security.Protocol.Tls.SecurityProtocolType)
+                               ServicePointManager.SecurityProtocol, clientCertificates)
                 {
                         // this constructor permit access to the WebRequest to call
                         // ICertificatePolicy.CheckValidationResult