Merge pull request #5382 from kumpera/pedump_fix
[mono.git] / mcs / class / System / System.Net / DefaultCertificatePolicy.cs
index 82d3369389be119d696a72fa25cc8adfe4455a42..011c295a5eae34cceb518fb174fd1df816cfe591 100644 (file)
@@ -39,7 +39,7 @@ namespace System.Net {
                // but) expired certificates.
                public bool CheckValidationResult (ServicePoint point, X509Certificate certificate, WebRequest request, int certificateProblem)
                {
-#if NET_2_0 && SECURITY_DEP
+#if SECURITY_DEP
                        // If using default policy and the new callback is there, ignore this
                        if (ServicePointManager.ServerCertificateValidationCallback != null)
                                return true;