diff options
author | Teravus Ovares | 2008-08-27 20:27:18 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-08-27 20:27:18 +0000 |
commit | f900553b58b3c54dcd9a89061439bb8c162e1d6c (patch) | |
tree | 02b4e95ebdd83d9520c41ac9a986df5a2b36090f /OpenSim/Region | |
parent | cleaning out cruft from pre-Migration days (diff) | |
download | opensim-SC-f900553b58b3c54dcd9a89061439bb8c162e1d6c.zip opensim-SC-f900553b58b3c54dcd9a89061439bb8c162e1d6c.tar.gz opensim-SC-f900553b58b3c54dcd9a89061439bb8c162e1d6c.tar.bz2 opensim-SC-f900553b58b3c54dcd9a89061439bb8c162e1d6c.tar.xz |
* Updates OGP module to define a default starting point
* An attempt to solve an intermittan SSL Certificate validation error causing communications havok.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs index ce3c62f..c0ef208 100644 --- a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs +++ b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs | |||
@@ -121,8 +121,17 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
121 | } | 121 | } |
122 | catch (NotImplementedException) | 122 | catch (NotImplementedException) |
123 | { | 123 | { |
124 | m_log.Error("[OGP]: Certificate validation handler change not supported. You may get ssl certificate validation errors teleporting from your region to some SSL regions."); | 124 | try |
125 | { | ||
126 | // Mono does not implement the ServicePointManager.ServerCertificateValidationCallback yet! Don't remove this! | ||
127 | ServicePointManager.CertificatePolicy = new MonoCert(); | ||
128 | } | ||
129 | catch (Exception) | ||
130 | { | ||
131 | m_log.Error("[OGP]: Certificate validation handler change not supported. You may get ssl certificate validation errors teleporting from your region to some SSL regions."); | ||
132 | } | ||
125 | } | 133 | } |
134 | |||
126 | } | 135 | } |
127 | 136 | ||
128 | if (!m_scene.Contains(scene)) | 137 | if (!m_scene.Contains(scene)) |
@@ -268,7 +277,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
268 | agentData.lastname = LastName; | 277 | agentData.lastname = LastName; |
269 | agentData.SecureSessionID=LLUUID.Random(); | 278 | agentData.SecureSessionID=LLUUID.Random(); |
270 | agentData.SessionID=LLUUID.Random(); | 279 | agentData.SessionID=LLUUID.Random(); |
271 | agentData.startpos=LLVector3.Zero; | 280 | agentData.startpos = new LLVector3(128f, 128f, 100f); |
272 | 281 | ||
273 | // Pre-Fill our region cache with information on the agent. | 282 | // Pre-Fill our region cache with information on the agent. |
274 | UserAgentData useragent = new UserAgentData(); | 283 | UserAgentData useragent = new UserAgentData(); |
@@ -556,6 +565,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
556 | string rrAccess = rezResponseMap["sim_access"].AsString(); | 565 | string rrAccess = rezResponseMap["sim_access"].AsString(); |
557 | 566 | ||
558 | LLSDArray RezResponsePositionArray = (LLSDArray)rezResponseMap["position"]; | 567 | LLSDArray RezResponsePositionArray = (LLSDArray)rezResponseMap["position"]; |
568 | |||
559 | 569 | ||
560 | responseMap["seed_capability"] = LLSD.FromString(rezRespSeedCap); | 570 | responseMap["seed_capability"] = LLSD.FromString(rezRespSeedCap); |
561 | responseMap["sim_ip"] = LLSD.FromString(Util.GetHostFromDNS(rezRespSim_ip).ToString()); | 571 | responseMap["sim_ip"] = LLSD.FromString(Util.GetHostFromDNS(rezRespSim_ip).ToString()); |
@@ -876,4 +886,17 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
876 | } | 886 | } |
877 | 887 | ||
878 | } | 888 | } |
889 | public class MonoCert : ICertificatePolicy | ||
890 | { | ||
891 | |||
892 | |||
893 | #region ICertificatePolicy Members | ||
894 | |||
895 | public bool CheckValidationResult(ServicePoint srvPoint, X509Certificate certificate, WebRequest request, int certificateProblem) | ||
896 | { | ||
897 | return true; | ||
898 | } | ||
899 | |||
900 | #endregion | ||
901 | } | ||
879 | } | 902 | } |