aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs
index 4e64979..5e28ee1 100644
--- a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs
+++ b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs
@@ -118,7 +118,15 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
118 return true; 118 return true;
119 } 119 }
120 120
121 return chain.Build(new X509Certificate2(certificate)); 121 if ((((int)sslPolicyErrors) & ~4) != 0)
122 return false;
123
124 if (ServicePointManager.CertificatePolicy != null)
125 {
126 ServicePoint sp = Request.ServicePoint;
127 return ServicePointManager.CertificatePolicy.CheckValidationResult (sp, certificate, Request, 0);
128 }
129 return true;
122 } 130 }
123 #region IHttpRequestModule Members 131 #region IHttpRequestModule Members
124 132
@@ -478,4 +486,4 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
478 } 486 }
479 } 487 }
480 } 488 }
481} \ No newline at end of file 489}