aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
authorTeravus Ovares2008-08-26 05:20:46 +0000
committerTeravus Ovares2008-08-26 05:20:46 +0000
commitb3a6f8d688fa68d45cde43d81c1e7607e4f7cf57 (patch)
treee9b66194e28d505c5d5123382f9dc3b1b903b8f0 /OpenSim/Region/Environment
parent* Fixed a bug that occurred if your home region wasn't logged in, in standalo... (diff)
downloadopensim-SC_OLD-b3a6f8d688fa68d45cde43d81c1e7607e4f7cf57.zip
opensim-SC_OLD-b3a6f8d688fa68d45cde43d81c1e7607e4f7cf57.tar.gz
opensim-SC_OLD-b3a6f8d688fa68d45cde43d81c1e7607e4f7cf57.tar.bz2
opensim-SC_OLD-b3a6f8d688fa68d45cde43d81c1e7607e4f7cf57.tar.xz
* Workaround for application/llsd+xml requests coming in as application/xml
* When OGP is active, disable SSL certificate chain validation. I'll add more options here to come, as well as a way to test against a group of known certificate subjects.
Diffstat (limited to 'OpenSim/Region/Environment')
-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