diff options
Diffstat (limited to 'OpenSim/Data/SQLite')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteGridData.cs | 2 | ||||
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteRegionData.cs | 16 |
2 files changed, 1 insertions, 17 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); |
diff --git a/OpenSim/Data/SQLite/SQLiteRegionData.cs b/OpenSim/Data/SQLite/SQLiteRegionData.cs index 9908735..b648ee8 100644 --- a/OpenSim/Data/SQLite/SQLiteRegionData.cs +++ b/OpenSim/Data/SQLite/SQLiteRegionData.cs | |||
@@ -1223,22 +1223,6 @@ namespace OpenSim.Data.SQLite | |||
1223 | s.TextureEntry = textureEntry; | 1223 | s.TextureEntry = textureEntry; |
1224 | 1224 | ||
1225 | s.ExtraParams = (byte[]) row["ExtraParams"]; | 1225 | s.ExtraParams = (byte[]) row["ExtraParams"]; |
1226 | // System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding(); | ||
1227 | // string texture = encoding.GetString((Byte[])row["Texture"]); | ||
1228 | // if (!texture.StartsWith("<")) | ||
1229 | // { | ||
1230 | // //here so that we can still work with old format database files (ie from before I added xml serialization) | ||
1231 | // LLObject.TextureEntry textureEntry = null; | ||
1232 | // textureEntry = new LLObject.TextureEntry(new LLUUID(texture)); | ||
1233 | // s.TextureEntry = textureEntry.ToBytes(); | ||
1234 | // } | ||
1235 | // else | ||
1236 | // { | ||
1237 | // TextureBlock textureEntry = TextureBlock.FromXmlString(texture); | ||
1238 | // s.TextureEntry = textureEntry.TextureData; | ||
1239 | // s.ExtraParams = textureEntry.ExtraParams; | ||
1240 | // } | ||
1241 | |||
1242 | return s; | 1226 | return s; |
1243 | } | 1227 | } |
1244 | 1228 | ||