aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Services/HypergridService/GatekeeperService.cs6
-rw-r--r--OpenSim/Services/HypergridService/HGInstantMessageService.cs3
-rwxr-xr-xOpenSim/Services/LLLoginService/LLLoginService.cs6
-rw-r--r--OpenSim/Tests/Robust/Clients/InstantMessage/IMClient.cs2
4 files changed, 13 insertions, 4 deletions
diff --git a/OpenSim/Services/HypergridService/GatekeeperService.cs b/OpenSim/Services/HypergridService/GatekeeperService.cs
index 1b652a0..8ad9df8 100644
--- a/OpenSim/Services/HypergridService/GatekeeperService.cs
+++ b/OpenSim/Services/HypergridService/GatekeeperService.cs
@@ -73,6 +73,7 @@ namespace OpenSim.Services.HypergridService
73 private static Uri m_Uri; 73 private static Uri m_Uri;
74 private static GridRegion m_DefaultGatewayRegion; 74 private static GridRegion m_DefaultGatewayRegion;
75 private bool m_allowDuplicatePresences = false; 75 private bool m_allowDuplicatePresences = false;
76 private static string m_messageKey;
76 77
77 public GatekeeperService(IConfigSource config, ISimulationService simService) 78 public GatekeeperService(IConfigSource config, ISimulationService simService)
78 { 79 {
@@ -154,6 +155,9 @@ namespace OpenSim.Services.HypergridService
154 m_allowDuplicatePresences = presenceConfig.GetBoolean("AllowDuplicatePresences", m_allowDuplicatePresences); 155 m_allowDuplicatePresences = presenceConfig.GetBoolean("AllowDuplicatePresences", m_allowDuplicatePresences);
155 } 156 }
156 157
158 IConfig messagingConfig = config.Configs["Messaging"];
159 if (messagingConfig != null)
160 m_messageKey = messagingConfig.GetString("MessageKey", String.Empty);
157 m_log.Debug("[GATEKEEPER SERVICE]: Starting..."); 161 m_log.Debug("[GATEKEEPER SERVICE]: Starting...");
158 } 162 }
159 } 163 }
@@ -651,7 +655,7 @@ namespace OpenSim.Services.HypergridService
651 msg.Position = Vector3.Zero; 655 msg.Position = Vector3.Zero;
652 msg.RegionID = scopeID.Guid; 656 msg.RegionID = scopeID.Guid;
653 msg.binaryBucket = new byte[1] {0}; 657 msg.binaryBucket = new byte[1] {0};
654 InstantMessageServiceConnector.SendInstantMessage(regURL,msg); 658 InstantMessageServiceConnector.SendInstantMessage(regURL,msg, m_messageKey);
655 659
656 m_GridUserService.LoggedOut(agentID.ToString(), 660 m_GridUserService.LoggedOut(agentID.ToString(),
657 UUID.Zero, guinfo.LastRegionID, guinfo.LastPosition, guinfo.LastLookAt); 661 UUID.Zero, guinfo.LastRegionID, guinfo.LastPosition, guinfo.LastLookAt);
diff --git a/OpenSim/Services/HypergridService/HGInstantMessageService.cs b/OpenSim/Services/HypergridService/HGInstantMessageService.cs
index 09c5354..4d628e0 100644
--- a/OpenSim/Services/HypergridService/HGInstantMessageService.cs
+++ b/OpenSim/Services/HypergridService/HGInstantMessageService.cs
@@ -70,6 +70,7 @@ namespace OpenSim.Services.HypergridService
70 70
71 private static bool m_ForwardOfflineGroupMessages; 71 private static bool m_ForwardOfflineGroupMessages;
72 private static bool m_InGatekeeper; 72 private static bool m_InGatekeeper;
73 private string m_messageKey;
73 74
74 public HGInstantMessageService(IConfigSource config) 75 public HGInstantMessageService(IConfigSource config)
75 : this(config, null) 76 : this(config, null)
@@ -322,7 +323,7 @@ namespace OpenSim.Services.HypergridService
322 323
323 bool ForwardIMToGrid(string url, GridInstantMessage im, UUID toAgentID, bool foreigner) 324 bool ForwardIMToGrid(string url, GridInstantMessage im, UUID toAgentID, bool foreigner)
324 { 325 {
325 if (InstantMessageServiceConnector.SendInstantMessage(url, im)) 326 if (InstantMessageServiceConnector.SendInstantMessage(url, im, m_messageKey))
326 { 327 {
327 // IM delivery successful, so store the Agent's location in our local cache. 328 // IM delivery successful, so store the Agent's location in our local cache.
328 lock (m_UserLocationMap) 329 lock (m_UserLocationMap)
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs
index 22cdff5..9b8ea37 100755
--- a/OpenSim/Services/LLLoginService/LLLoginService.cs
+++ b/OpenSim/Services/LLLoginService/LLLoginService.cs
@@ -92,6 +92,7 @@ namespace OpenSim.Services.LLLoginService
92 protected string m_MessageUrl; 92 protected string m_MessageUrl;
93 protected string m_DSTZone; 93 protected string m_DSTZone;
94 protected bool m_allowDuplicatePresences = false; 94 protected bool m_allowDuplicatePresences = false;
95 protected string m_messageKey;
95 96
96 IConfig m_LoginServerConfig; 97 IConfig m_LoginServerConfig;
97// IConfig m_ClientsConfig; 98// IConfig m_ClientsConfig;
@@ -159,6 +160,9 @@ namespace OpenSim.Services.LLLoginService
159 m_MapTileURL = m_MapTileURL + "/"; 160 m_MapTileURL = m_MapTileURL + "/";
160 } 161 }
161 162
163 IConfig messagingConfig = config.Configs["Messaging"];
164 if (messagingConfig != null)
165 m_messageKey = messagingConfig.GetString("MessageKey", String.Empty);
162 // These are required; the others aren't 166 // These are required; the others aren't
163 if (accountService == string.Empty || authService == string.Empty) 167 if (accountService == string.Empty || authService == string.Empty)
164 throw new Exception("LoginService is missing service specifications"); 168 throw new Exception("LoginService is missing service specifications");
@@ -1170,7 +1174,7 @@ namespace OpenSim.Services.LLLoginService
1170 msg.Position = Vector3.Zero; 1174 msg.Position = Vector3.Zero;
1171 msg.RegionID = scopeID.Guid; 1175 msg.RegionID = scopeID.Guid;
1172 msg.binaryBucket = new byte[1] {0}; 1176 msg.binaryBucket = new byte[1] {0};
1173 InstantMessageServiceConnector.SendInstantMessage(regURL,msg); 1177 InstantMessageServiceConnector.SendInstantMessage(regURL,msg, m_messageKey);
1174 1178
1175 m_GridUserService.LoggedOut(agentID.ToString(), 1179 m_GridUserService.LoggedOut(agentID.ToString(),
1176 UUID.Zero, guinfo.LastRegionID, guinfo.LastPosition, guinfo.LastLookAt); 1180 UUID.Zero, guinfo.LastRegionID, guinfo.LastPosition, guinfo.LastLookAt);
diff --git a/OpenSim/Tests/Robust/Clients/InstantMessage/IMClient.cs b/OpenSim/Tests/Robust/Clients/InstantMessage/IMClient.cs
index 8f312eb..4eba7b9 100644
--- a/OpenSim/Tests/Robust/Clients/InstantMessage/IMClient.cs
+++ b/OpenSim/Tests/Robust/Clients/InstantMessage/IMClient.cs
@@ -50,7 +50,7 @@ namespace Robust.Tests
50 im.message = "Hello"; 50 im.message = "Hello";
51 im.imSessionID = new Guid(); 51 im.imSessionID = new Guid();
52 52
53 bool success = InstantMessageServiceConnector.SendInstantMessage(DemonServer.Address, im); 53 bool success = InstantMessageServiceConnector.SendInstantMessage(DemonServer.Address, im, String.Empty);
54 Assert.IsFalse(success, "Sending of IM succeeded, but it should have failed"); 54 Assert.IsFalse(success, "Sending of IM succeeded, but it should have failed");
55 } 55 }
56 56