[System]: fix certificate validation on Wine/OSX
authorRoger Vuistiner <vuistiner@epsitec.ch>
Tue, 6 Dec 2016 19:46:18 +0000 (20:46 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 6 Dec 2016 21:44:09 +0000 (22:44 +0100)
- the `is_macosx` static field should be false on Wine/OSX, as it is on Windows.

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

index 42c17de3ce66ec827f7aeea29b5a481438054ebe..5b3aae1a70d010f91cc05a96296c9c7e8ccb2f56 100644 (file)
@@ -45,7 +45,7 @@ namespace Mono.Net.Security
 #elif MONODROID
                        is_macosx = false;
 #else
-                       is_macosx = System.IO.File.Exists (OSX509Certificates.SecurityLibrary);
+                       is_macosx = Environment.OSVersion.Platform != PlatformID.Win32NT && System.IO.File.Exists (OSX509Certificates.SecurityLibrary);
 #endif
 
 #if !MOBILE