Fix my last commit.
authorMartin Baulig <martin.baulig@xamarin.com>
Tue, 17 Nov 2015 21:04:48 +0000 (16:04 -0500)
committerMartin Baulig <martin.baulig@xamarin.com>
Tue, 17 Nov 2015 21:05:29 +0000 (16:05 -0500)
(cherry picked from commit 4a5da6f7639a2ebeb4f7ac69fadec5be58a566a6)

mcs/class/System/Mono.Net.Security/SystemCertificateValidator.cs

index 0809c44880be017ff2540c3929040b2c5eefc7df..762c74aba1a34cf73f7d296edadec765fc4a05c0 100644 (file)
@@ -109,15 +109,16 @@ namespace Mono.Net.Security
                                Console.Error.WriteLine ("ERROR building certificate chain: {0}", e);
                                Console.Error.WriteLine ("Please, report this problem to the Mono team");
                                errors |= SslPolicyErrors.RemoteCertificateChainErrors;
+                               ok = false;
                        }
 
                        try {
                                status11 = GetStatusFromChain (chain);
                        } catch {
-                               status11 = 0x800B010B; // TRUST_E_FAIL - generic
+                               status11 = -2146762485; // TRUST_E_FAIL - generic
                        }
 
-                       return chain;
+                       return ok;
 #endif
                }