From fe18adbc1179318cb230b9ac01db0e26e40ec93d Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Wed, 28 Jan 2009 04:50:25 +0000 Subject: [PATCH] Add in a stub for llSHA1String. I believe it is the only one new function we were missing. --- .../Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 5 +++++ OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs | 3 ++- OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index df3a3dc61b..10a3133e5c 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -5887,6 +5887,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api return Util.Md5Hash(src + ":" + nonce.ToString()); } + public LSL_String llSHA1String(string src) + { + m_host.AddScriptLPS(1); + return ""; //ckrinke 1/27 This needs to return a proper hash. + } private ObjectShapePacket.ObjectDataBlock SetPrimitiveBlockShapeParams(SceneObjectPart part, int holeshape, LSL_Vector cut, float hollow, LSL_Vector twist) { ObjectShapePacket.ObjectDataBlock shapeBlock = new ObjectShapePacket.ObjectDataBlock(); diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs index 6ca254a57d..94da01e2b6 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs @@ -233,7 +233,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces void llMakeFountain(int particles, float scale, float vel, float lifetime, float arc, int bounce, string texture, LSL_Vector offset, float bounce_offset); void llMakeSmoke(int particles, double scale, double vel, double lifetime, double arc, string texture, LSL_Vector offset); void llMapDestination(string simname, LSL_Vector pos, LSL_Vector look_at); - LSL_String llMD5String(string src, int nonce); + LSL_String llMD5String(string src, int nonce); + LSL_String llSHA1String(string src); void llMessageLinked(int linknum, int num, string str, string id); void llMinEventDelay(double delay); void llModifyLand(int action, int brush); diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs index 78a183fc92..8559654f46 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs @@ -1029,6 +1029,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase return m_LSL_Functions.llMD5String(src, nonce); } + public LSL_String llSHA1String(string src) + { + return m_LSL_Functions.llSHA1String(src); + } + public void llMessageLinked(int linknum, int num, string str, string id) { m_LSL_Functions.llMessageLinked(linknum, num, str, id);