diff options
author | diva | 2009-04-14 19:35:35 +0000 |
---|---|---|
committer | diva | 2009-04-14 19:35:35 +0000 |
commit | 0413d052a3ec541164049e7d39278c57fb92ed06 (patch) | |
tree | 9a58c9c51487278d67e1ad9b3a60668769434001 /OpenSim/Framework/Util.cs | |
parent | * Make archiver tests pump the asset server manually instead of starting the ... (diff) | |
download | opensim-SC-0413d052a3ec541164049e7d39278c57fb92ed06.zip opensim-SC-0413d052a3ec541164049e7d39278c57fb92ed06.tar.gz opensim-SC-0413d052a3ec541164049e7d39278c57fb92ed06.tar.bz2 opensim-SC-0413d052a3ec541164049e7d39278c57fb92ed06.tar.xz |
Adds session authentication upon NewUserConnections. Adds user key authentication (in safemode only) upon CreateChildAgents. All of this for Hypergrid users too. This addresses assorted spoofing vulnerabilities.
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r-- | OpenSim/Framework/Util.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 7019096..f1993b2 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -26,6 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections; | ||
29 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
30 | using System.Data; | 31 | using System.Data; |
31 | using System.Globalization; | 32 | using System.Globalization; |
@@ -820,6 +821,21 @@ namespace OpenSim.Framework | |||
820 | } | 821 | } |
821 | 822 | ||
822 | /// <summary> | 823 | /// <summary> |
824 | /// Returns an error message that the user could not be found in the database | ||
825 | /// </summary> | ||
826 | /// <returns>XML string consisting of a error element containing individual error(s)</returns> | ||
827 | public static XmlRpcResponse CreateUnknownUserErrorResponse() | ||
828 | { | ||
829 | XmlRpcResponse response = new XmlRpcResponse(); | ||
830 | Hashtable responseData = new Hashtable(); | ||
831 | responseData["error_type"] = "unknown_user"; | ||
832 | responseData["error_desc"] = "The user requested is not in the database"; | ||
833 | |||
834 | response.Value = responseData; | ||
835 | return response; | ||
836 | } | ||
837 | |||
838 | /// <summary> | ||
823 | /// Converts a byte array in big endian order into an ulong. | 839 | /// Converts a byte array in big endian order into an ulong. |
824 | /// </summary> | 840 | /// </summary> |
825 | /// <param name="bytes"> | 841 | /// <param name="bytes"> |