aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite/SQLiteGridData.cs
diff options
context:
space:
mode:
authorAdam Frisby2008-05-01 18:50:44 +0000
committerAdam Frisby2008-05-01 18:50:44 +0000
commit76d8eaa4069d6445c47784168e274ba4253f7b9c (patch)
tree6f0f023b9c994253f3f6808edf94949c7ebd2d29 /OpenSim/Data/SQLite/SQLiteGridData.cs
parentAttempt to locate SL client in LaunchSLClient under other Unices. (diff)
downloadopensim-SC_OLD-76d8eaa4069d6445c47784168e274ba4253f7b9c.zip
opensim-SC_OLD-76d8eaa4069d6445c47784168e274ba4253f7b9c.tar.gz
opensim-SC_OLD-76d8eaa4069d6445c47784168e274ba4253f7b9c.tar.bz2
opensim-SC_OLD-76d8eaa4069d6445c47784168e274ba4253f7b9c.tar.xz
* Thanks to Mic Bowman for inspiring me to look at that we are still using ASCIIEncoder in places we shouldn't.
Diffstat (limited to 'OpenSim/Data/SQLite/SQLiteGridData.cs')
-rw-r--r--OpenSim/Data/SQLite/SQLiteGridData.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteGridData.cs b/OpenSim/Data/SQLite/SQLiteGridData.cs
index f07b98f..989ec77 100644
--- a/OpenSim/Data/SQLite/SQLiteGridData.cs
+++ b/OpenSim/Data/SQLite/SQLiteGridData.cs
@@ -224,7 +224,7 @@ namespace OpenSim.Data.SQLite
224 public bool AuthenticateSim(LLUUID uuid, ulong handle, string authhash, string challenge) 224 public bool AuthenticateSim(LLUUID uuid, ulong handle, string authhash, string challenge)
225 { 225 {
226 SHA512Managed HashProvider = new SHA512Managed(); 226 SHA512Managed HashProvider = new SHA512Managed();
227 ASCIIEncoding TextProvider = new ASCIIEncoding(); 227 Encoding TextProvider = new UTF8Encoding();
228 228
229 byte[] stream = TextProvider.GetBytes(uuid.ToString() + ":" + handle.ToString() + ":" + challenge); 229 byte[] stream = TextProvider.GetBytes(uuid.ToString() + ":" + handle.ToString() + ":" + challenge);
230 byte[] hash = HashProvider.ComputeHash(stream); 230 byte[] hash = HashProvider.ComputeHash(stream);