From 4ce4834f5947350da0739c83f7e74015c103dc2c Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Fri, 4 May 2007 07:01:37 +0000 Subject: * Added support for user/asset server keys per-region (warning: changes table layout in SQL storages) --- OpenGrid.Framework.Data.MySQL/MySQLManager.cs | 10 +++++++ OpenGrid.Framework.Data/GridData.cs | 41 +++++++++++++++++++++++++++ OpenGrid.Framework.Data/SimProfileData.cs | 6 ++++ 3 files changed, 57 insertions(+) diff --git a/OpenGrid.Framework.Data.MySQL/MySQLManager.cs b/OpenGrid.Framework.Data.MySQL/MySQLManager.cs index 0147b5b..057cd42 100644 --- a/OpenGrid.Framework.Data.MySQL/MySQLManager.cs +++ b/OpenGrid.Framework.Data.MySQL/MySQLManager.cs @@ -100,6 +100,16 @@ namespace OpenGrid.Framework.Data.MySQL retval.regionWestOverrideHandle = (ulong)reader["westOverrideHandle"]; retval.regionSouthOverrideHandle = (ulong)reader["southOverrideHandle"]; retval.regionNorthOverrideHandle = (ulong)reader["northOverrideHandle"]; + + // Assets + retval.regionAssetURI = (string)reader["regionAssetURI"]; + retval.regionAssetRecvKey = (string)reader["regionAssetRecvKey"]; + retval.regionAssetSendKey = (string)reader["regionAssetSendKey"]; + + // Userserver + retval.regionUserURI = (string)reader["regionUserURI"]; + retval.regionUserRecvKey = (string)reader["regionUserRecvKey"]; + retval.regionUserSendKey = (string)reader["regionUserSendKey"]; } else { diff --git a/OpenGrid.Framework.Data/GridData.cs b/OpenGrid.Framework.Data/GridData.cs index d6b5a2b..3b052fb 100644 --- a/OpenGrid.Framework.Data/GridData.cs +++ b/OpenGrid.Framework.Data/GridData.cs @@ -4,14 +4,55 @@ using System.Text; namespace OpenGrid.Framework.Data { + /// + /// A standard grid interface + /// public interface IGridData { + /// + /// Returns a sim profile from a regionHandle + /// + /// A 64bit Region Handle + /// A simprofile SimProfileData GetProfileByHandle(ulong regionHandle); + + /// + /// Returns a sim profile from a UUID + /// + /// A 128bit UUID + /// A sim profile SimProfileData GetProfileByLLUUID(libsecondlife.LLUUID UUID); + + /// + /// Authenticates a sim by use of it's recv key. + /// WARNING: Insecure + /// + /// The UUID sent by the sim + /// The regionhandle sent by the sim + /// The recieving key sent by the sim + /// Whether the sim has been authenticated bool AuthenticateSim(libsecondlife.LLUUID UUID, ulong regionHandle, string simrecvkey); + + /// + /// Initialises the interface + /// void Initialise(); + + /// + /// Closes the interface + /// void Close(); + + /// + /// The plugin being loaded + /// + /// A string containing the plugin name string getName(); + + /// + /// The plugins version + /// + /// A string containing the plugin version string getVersion(); } } diff --git a/OpenGrid.Framework.Data/SimProfileData.cs b/OpenGrid.Framework.Data/SimProfileData.cs index 4cc9982..d5a5392 100644 --- a/OpenGrid.Framework.Data/SimProfileData.cs +++ b/OpenGrid.Framework.Data/SimProfileData.cs @@ -62,10 +62,16 @@ namespace OpenGrid.Framework.Data /// Used for floating sim pools where the region data is not nessecarily coupled to a specific server public string regionDataURI; + /// + /// Region Asset Details + /// public string regionAssetURI; public string regionAssetSendKey; public string regionAssetRecvKey; + /// + /// Region Userserver Details + /// public string regionUserURI; public string regionUserSendKey; public string regionUserRecvKey; -- cgit v1.1