Commit Graph

32988 Commits

Author SHA1 Message Date
UbitUmarov
f770fc8a0e missing file 2024-03-05 18:52:48 +00:00
UbitUmarov
c618c4a6c4 rename the new osGetInventoryKeys as osgetinventoryitemkeys and osgetlinkinventorykey as osgetinventoryitemkey for coerence and to make clear that key means the item key within prim inventory and not its asset key as in ll funtion 2024-03-05 18:51:42 +00:00
UbitUmarov
52c287d8dc manits 9118: fix clear of animesh flag on *GetPrimitiveParams 2024-03-04 23:48:13 +00:00
UbitUmarov
97b03f76c7 fix the last patch 2024-02-29 20:40:42 +00:00
Jeff Kelley
d58f9f0f5d osGetSitTarget
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
2024-02-29 20:28:20 +00:00
UbitUmarov
ab4b690ffd fis AES encoding 2024-02-27 20:21:35 +00:00
UbitUmarov
18ec6d6380 cosmetics 2024-02-26 18:07:50 +00:00
Ubit Umarov
d875ce89d4 Merge pull request #17 from AdilElFarissi/master
Add 2 OSSL functions to the LinkInventory collection
2024-02-26 17:51:34 +00:00
UbitUmarov
154ddaa44b add unmanaded ubode lib for arm64 linux, thanks Deijimarge 2024-02-25 23:04:56 +00:00
Adil El Farissi
60214e6e81 Add 2 OSSL functions to the LinkInventory collection
Add Functions:
+ osGiveLinkInventoryList(integer linkNumber, key destination, string category, list inventory)
Give a group of items located in a child prim inventory

+ osRemoveLinkInventory(integer linkNumber, string name)
Remove an item from a child prim inventory

LSL Script example:
<pre><code>
default
{
    touch_start(integer a){

        integer linkNumber = llDetectedLinkNumber(0);
        list linkInventoryNames = osGetLinkInventoryNames(linkNumber, INVENTORY_ALL);
        osGiveLinkInventoryList(linkNumber, llDetectedKey(0), llGetLinkName(linkNumber), linkInventoryNames);

        for(integer i = 0; i < llGetListLength(linkInventoryNames); i++){
            osRemoveLinkInventory(linkNumber, llList2String(linkInventoryNames, i));
        }
    }
}
</code></pre>
2024-02-25 07:14:49 +00:00
UbitUmarov
f4e14aba6d fix webstats SStats defualt answer 2024-02-24 16:36:15 +00:00
UbitUmarov
eb9afdaffc break them a bit more... 2024-02-24 15:47:06 +00:00
UbitUmarov
121f270414 a few changes to last PR (aes methods) - all still untested 2024-02-24 14:50:54 +00:00
Ubit Umarov
662eac32a2 Merge pull request #16 from AdilElFarissi/master
Basic implementation of AES encryption/decryption  and respective OSSL functions
2024-02-24 14:07:11 +00:00
UbitUmarov
46f87b58c1 update libomv 2024-02-24 14:04:05 +00:00
Adil El Farissi
898ab06203 Fix to mantis 9115 2024-02-24 04:22:50 +00:00
Adil El Farissi
b4f33ad594 Replaced OSSLError by OSSLShoutError 2024-02-23 23:42:18 +00:00
Adil El Farissi
db80781e7d Basic implementation of AES encryption/decryption and respective OSSL functions
Add methods:
+ private static string AESEncryptString(string secret, string plainText, string ivString= null)
AES Encrypt a string using a password and a random or custom Initialization Vector.

+ private static string AESDecryptString(string secret, string encryptedText, string ivString= null)
AES Decrypt the string encrypted by AESEncryptString with the same password and ivString used in the encryption.

Methods implementations:
+ Util.AESEncrypt(string secret, string plainText)
+ Util.AESDecrypt(string secret, string encryptedText)
+Util.AESEncryptTo(string secret, string plainText, string ivString)
+ Util.AESDecryptFrom(string secret, string encryptedText, string ivString)

OSSL functions as first case of use:
+ osAESEncrypt(string secret, string plainText)
+ osAESDecrypt(string secret, string encryptedText)
+ osAESEncryptTo(string secret, string plainText, string ivString)
+ osAESDecryptFrom(string secret, string encryptedText, string ivString)

LSL script example:
<pre><code>
string plainText = "Hello World :)";
string secret = "#!qUeRtY$@123^456€!#";

default
{
    touch_start(integer i)
    {
        string encryptedText = osAESEncrypt(secret, plainText);
        llOwnerSay("\nEncrypted with osAESEncrypt:\n"+ encryptedText);
        string decryptedText = osAESDecrypt(secret, encryptedText);
        llOwnerSay("\nDecrypted with osAESDecrypt:\n"+ decryptedText);

        // Encription / Decription with custom Initialization Vector.
        string ivString = (string)llGetOwner() /* +"_"+ llGenerateKey() */;
        string encryptedToText = osAESEncryptTo(secret, plainText, ivString);
        llOwnerSay("\nEncrypted with osAESEncryptTo:\n"+ encryptedToText);
        string decryptedFromText = osAESDecryptFrom(secret, encryptedToText, ivString);
        llOwnerSay("\nDecrypted with osAESDecryptFrom:\n"+ decryptedFromText);
    }
}
</code></pre>

Web Rain :)
2024-02-23 21:14:33 +00:00
UbitUmarov
5b67966ddd cosmetics on offline msg v2 2024-02-22 19:48:12 +00:00
UbitUmarov
35a40ada77 fix ossl set ProjectionFocus range 2024-02-22 18:16:25 +00:00
UbitUmarov
76c813c2e4 useless changes 2024-02-22 01:47:24 +00:00
UbitUmarov
b383a027dc cosmetics... 2024-02-21 15:58:05 +00:00
UbitUmarov
152b64179b a few changes to last PR, let getlink select root; add getkeys permissions checks (don't remember why we have those) plus cosmetics 2024-02-21 15:20:53 +00:00
UbitUmarov
3abcd8ba4b Merge branch 'master' of https://github.com/opensim/opensim 2024-02-21 14:12:15 +00:00
Ubit Umarov
f922eda137 Merge pull request #15 from AdilElFarissi/master
Add some OSSL functions related to child prims inventory manipulations
2024-02-21 14:11:43 +00:00
Adil El Farissi
ea7417dff6 Update OSSL_Stub.cs 2024-02-21 04:26:06 +00:00
Adil El Farissi
e835a46ec8 Fix uuid to string 2024-02-20 21:58:39 +00:00
Adil El Farissi
ca722ecdd8 Add some OSSL functions related to child prims inventory manipulations
Add functions:

+ osGiveLinkInventory(integer linkNumber, key destination, string inventory)
Give an item located in a child prim inventory.

+ osGetInventoryNames(integer type)
Return a list of items names by type (or INVENTORY_ALL) located in the prim inventory.

+ osGetLinkInventoryNames(integer linkNumber, integer type)
Return a list of items names by type (or INVENTORY_ALL) located in a child prim inventory.

+ osGetInventoryKeys(integer type)
Return a list of the items UUIDs by type (or INVENTORY_ALL) located in the prim inventory.

+ osGetLinkInventoryKeys(integer linkNumber, integer type)
Return a list of the items UUIDs by type (or INVENTORY_ALL) located in a child prim inventory.

+ osGetLinkInventoryKey(integer linkNumber, string name)
Return the UUID of the specified item name located in a child prim inventory.

+ osGetLinkInventoryDesc(integer linkNumber, string itemNameorid)
Return the description of an item located in a child prim inventory.

+ osGetLinkInventoryName(integer linkNumber, key itemId)
Return the name of an item located in a child prim inventory.

Note: the LinkInventory functions don't have access to the root prim contents. This may change if requested by the community...
2024-02-20 17:36:33 +00:00
UbitUmarov
c1438e0ee5 cosmetics 2024-02-17 14:54:37 +00:00
UbitUmarov
0c05c6efce sog temporay flags check is same for all DB engines 2024-02-17 12:47:46 +00:00
UbitUmarov
e460444596 cosmetics 2024-02-17 12:42:54 +00:00
UbitUmarov
cf27093ee9 several changes to llIsFriend and related methods 2024-02-16 20:14:06 +00:00
UbitUmarov
089037c749 update scriptsyntax.xml 2024-02-16 17:43:00 +00:00
UbitUmarov
4e2bea288a add llIsFriend 2024-02-16 17:17:59 +00:00
UbitUmarov
dd58a3a57c cosmetics; remove old unused sop rotation axis ints 2024-02-15 18:48:00 +00:00
UbitUmarov
cc3adba92a make sure login last location is within the region 2024-02-13 19:52:41 +00:00
UbitUmarov
854f6723ac mantis 9111: make code a bit more resilient to requests for large bit rates 2024-02-07 22:12:05 +00:00
UbitUmarov
4b99381a0d update scriptsyntax.xml 2024-02-07 02:09:55 +00:00
UbitUmarov
e31ad4869c copy linksetdata when doing a sog copy.. 2024-02-07 01:37:40 +00:00
UbitUmarov
fbdb6c420f missing file... 2024-02-06 23:48:07 +00:00
UbitUmarov
2e26b8a8bb add LinksetData support. Untested and still does not store in dbs. Not as spec. See mantis 9081 (runprebuild) 2024-02-06 23:45:11 +00:00
UbitUmarov
00e9e3c77a change limits on parcel name and description on llupd packets 2024-02-05 19:13:57 +00:00
UbitUmarov
f127fd56a2 pesty warning 2024-02-05 18:44:51 +00:00
UbitUmarov
f1cba63aad retire StringToBytes variants with string format. Do the format before calling.. 2024-02-05 18:34:44 +00:00
UbitUmarov
db04234685 update libomv 2024-02-05 18:07:57 +00:00
UbitUmarov
47810b04d5 pcampbot do not add 0 to last name if only making one bot; do not try to look for tree textures 2024-02-01 18:39:43 +00:00
UbitUmarov
52bd793120 some more rounding issues on pbr overrides 2024-01-31 17:19:53 +00:00
UbitUmarov
6ca32cb8ef some rounding issues on pbr overrides 2024-01-31 16:12:01 +00:00
UbitUmarov
ece71a6aa3 cosmetics 2024-01-31 13:09:27 +00:00
UbitUmarov
3e54b78668 avoid sending pbr lludp messages to older viewers 2024-01-31 13:06:53 +00:00