Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2010-03-26 05:57:43 +0300
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2010-03-26 05:57:43 +0300
commitcccbade308f20918708f13a69ba7235ce20d1303 (patch)
treea44e807705d3991f9a5b6575e512d5ed4d275abd /mcs
parent20ee9bcdb0411a17e9324dfa2cb95dcce947ccb3 (diff)
only check for the Mac library file once
svn path=/branches/mono-2-6/mcs/; revision=154238
Diffstat (limited to 'mcs')
-rw-r--r--mcs/class/System/System.Net/ServicePointManager.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/mcs/class/System/System.Net/ServicePointManager.cs b/mcs/class/System/System.Net/ServicePointManager.cs
index 11099a463c1..79e242726ab 100644
--- a/mcs/class/System/System.Net/ServicePointManager.cs
+++ b/mcs/class/System/System.Net/ServicePointManager.cs
@@ -384,6 +384,7 @@ namespace System.Net
internal class ChainValidationHelper {
object sender;
string host;
+ static bool is_macosx = System.IO.File.Exists (MSX.OSX509Certificates.SecurityLibrary);
public ChainValidationHelper (object sender)
{
@@ -436,7 +437,7 @@ namespace System.Net
bool result = false;
// No certificate root found means no mozroots or monotouch
#if !MONOTOUCH
- if (System.IO.File.Exists (MSX.OSX509Certificates.SecurityLibrary)) {
+ if (is_macosx) {
#endif
// Attempt to use OSX certificates
// Ideally we should return the SecTrustResult