[Mono-bugs] [Bug 75135][Nor] Changed - Web client redirect fails when using proxy on web request

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jun 3 01:42:27 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by mlasky at novell.com.

http://bugzilla.ximian.com/show_bug.cgi?id=75135

--- shadow/75135	2005-06-03 01:41:02.000000000 -0400
+++ shadow/75135.tmp.19576	2005-06-03 01:42:27.000000000 -0400
@@ -2,13 +2,13 @@
 Product: Mono: Class Libraries
 Version: 1.1
 OS: SLES 9
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Sys.Web
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: mlasky at novell.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -88,6 +88,63 @@
 
 How often does this happen? 
 Every time if the proxy is specified in the WebRequest. If the proxy is 
 removed from the WebRequest, it completes successfully.
 
 Additional Information:
+
+------- Additional Comments From mlasky at novell.com  2005-06-03 01:42 -------
+Forgot to add the additional class to override the certificate 
+handling.
+
+using System;
+using System.Net;
+using System.Security;
+using System.Security.Cryptography.X509Certificates;
+using System.Collections;
+
+namespace Test
+{
+	/// <summary>
+	/// Summary description for CertPolicy.
+	/// </summary>
+	public class CertPolicy : ICertificatePolicy
+	{
+		#region Constructor
+
+		/// <summary>
+		/// Initializes an instance of the object.
+		/// </summary>
+		public CertPolicy()
+		{
+			ServicePointManager.CertificatePolicy = this;
+		}
+
+		#endregion
+
+		#region ICertificatePolicy Members
+
+		/// <summary>
+		/// Implements the application certificate 
+validation policy.
+		/// </summary>
+		/// <param name="srvPoint">The ServicePoint that 
+will use the certificate.</param>
+		/// <param name="certificate">The certificate to 
+validate.</param>
+		/// <param name="request">The request that received 
+the certificate.</param>
+		/// <param name="certificateProblem">The problem 
+encountered when using the certificate.</param>
+		/// <returns>True if the certificate is to be 
+honored. Otherwise, false is returned.</returns>
+		public bool CheckValidationResult( ServicePoint 
+srvPoint, X509Certificate certificate, WebRequest request, int 
+certificateProblem )
+		{
+			return true;
+		}
+
+		#endregion
+	}
+}
+


More information about the mono-bugs mailing list