aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
index e2a46a1..5874d9b 100644
--- a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
+++ b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
@@ -30,6 +30,7 @@ using System.Collections.Generic;
30using System.IO; 30using System.IO;
31using System.Net; 31using System.Net;
32using System.Net.Security; 32using System.Net.Security;
33using System.Security.Cryptography.X509Certificates;
33using System.Net.Sockets; 34using System.Net.Sockets;
34using System.Reflection; 35using System.Reflection;
35using System.Text.RegularExpressions; 36using System.Text.RegularExpressions;
@@ -113,6 +114,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
113 if (m_scene.Count == 0) 114 if (m_scene.Count == 0)
114 { 115 {
115 scene.AddLLSDHandler("/agent/", ProcessAgentDomainMessage); 116 scene.AddLLSDHandler("/agent/", ProcessAgentDomainMessage);
117 ServicePointManager.ServerCertificateValidationCallback += customXertificateValidation;
116 } 118 }
117 119
118 if (!m_scene.Contains(scene)) 120 if (!m_scene.Contains(scene))
@@ -585,10 +587,12 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
585 587
586 private LLSDMap invokeRezAvatarCap(LLSDMap responseMap, string CapAddress, OGPState userState) 588 private LLSDMap invokeRezAvatarCap(LLSDMap responseMap, string CapAddress, OGPState userState)
587 { 589 {
590
588 591
589 WebRequest DeRezRequest = WebRequest.Create(CapAddress); 592 WebRequest DeRezRequest = WebRequest.Create(CapAddress);
590 DeRezRequest.Method = "POST"; 593 DeRezRequest.Method = "POST";
591 DeRezRequest.ContentType = "application/xml+llsd"; 594 DeRezRequest.ContentType = "application/xml+llsd";
595
592 596
593 LLSDMap RAMap = new LLSDMap(); 597 LLSDMap RAMap = new LLSDMap();
594 LLSDMap AgentParms = new LLSDMap(); 598 LLSDMap AgentParms = new LLSDMap();
@@ -842,6 +846,22 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
842 ta.Start(); 846 ta.Start();
843 } 847 }
844 } 848 }
849 // Temporary hack to allow teleporting to and from Vaak
850 private static bool customXertificateValidation(object sender, X509Certificate cert, X509Chain chain, SslPolicyErrors error)
851 {
852
853 //if (cert.Subject == "E=root@lindenlab.com, CN=*.vaak.lindenlab.com, O=\"Linden Lab, Inc.\", L=San Francisco, S=California, C=US")
854 //{
855
856 return true;
857
858 //}
859
860 //return false;
861
862 }
863
864
845 } 865 }
846 866
847 public class KillAUser 867 public class KillAUser