summaryrefslogtreecommitdiffstats
path: root/test/lua
Commit message (Collapse)AuthorAgeFilesLines
* [Feature] Add rspamadm secretbox commandIvan Stakhov2024-09-181-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [Minor] Small fix for error messages * [Feature] Create rspamadm util to decrypt header * [Feature] Create python example to encrypt/decrypt header * [Minor] Small clean up * [Minor] Change c-rspamadm util to lua-rspamadm util * [Minor] Small clean up * [Minor] Add some debug * [Feature] Add secretbox command * [Minor] Debug * [Minor] Add additional return for encrypted string(noce + encrypted string * [Minor] Small debug * [Minor] Add a way to provide encrypted text concatenated with nonce * [Minor] Add nonce to encrypt text * [Minor] Clean up * [Minor] Clean up unused variable * [Minor] Small fix * [Minor] Fix return issue * [Minor] Add blake2b for key derivation * [Minor] Small upgrade to debug * [Minor] Small clean up * [Minor] Change return to more convenient form * [Minor] Change print to test form * [Test] Provide tests for encrypt/decrypt with rspamadm util and python script * [Minor] Change python to python3 * [Minor] Add stderr check * [Minor] Make the function return nonce+text * [Minor] Change unit tests to new return format * [Minor] Add flag to manage encodings * [Minor] Add --encoding argument to manage encodings * [Minor] Change tests for new input format * [Minor] Fix lua format * [Minor] Small fix * [Minor] Provide full support for new return format of maybe_encrypt_header * [Test] Test small fix * [Test] Small fix * [Minor] Clean up * [Minor] Small fix for name of variable * [Minor] Small clean up * [Minor] Change format of command to a mre convenient * [Minor] Change tests to be same as a format of a command * [Minor] Change description of flags * [Minor] Small fix --------- Co-authored-by: Ivan Stakhov <50211739+LeftTry@users.noreply.github.com>
* [Feature] Add tooling to encrypt strings in LuaIvan Stakhov2024-09-051-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [Fix] Provide support for OpenSSL 3.0 * [Feature] Provide function to encode header with configured public key * [Feature] Provide function to decode header with configured public key * [Test] Add tests for maybe encode/decode header * [Minor] Fix tests for encode/decode header * [Minor] Small clean up * [Minor] Small clean up * [Minor] Small fix for OpenSSL 3.0 support * [Minor] Provide logging * [Minor] Small fix * [Fix] Fix typo error * [Fix] Another typo * [Minor] Little clean up * [Minor] Little fix * [Minor] Small fix * [Minor] Small fix * [Minor] Rewrite the arguments of secretbox:encrypt/decrypt functions to a more understandable format * [Fix] Fix problem with nonce was not provided * [Test] Add test for nonce * [Minor] Little clean up * [Minor] Little clean up * [Test] Test * [Test] Test * [Test] Test * [Minor] Little fix * [Minor] Small fix * [Minor] Small fix * [Test] Small fix * [Test] Test * [Test] Test * [Test] Test * [Test] Test * [Minor] Small fix for fips provider * [Minor] Change provider apply logic * [Test] Little fix for provider * [Minor] Provide OpenSSL <3.0 support * [Test] Possible provider fix * [Test] Possible provider fix * [Test] Little fix * [Minor] Fix provider issue * [Minor] Small clean up * [Minor] Change logging errors * Update lualib/lua_util.lua --------- Co-authored-by: Vsevolod Stakhov <vsevolod@rspamd.com>
* Provide OpenSSL 3.0 support for lua_rsa (#5101)Ivan Stakhov2024-08-171-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | * [Fix] Provide OSSL 3.0 support for lua_rsa (not working) * [Fix] Provide full OpenSSL 3.0 for lua_rsa * [Minor] Little clean up * [Minor] Clean up code from debug * [Test] Replace for fixed size fstring allocation * [Test] Add rsa padding and signature md for pctx * [Test] Little changes * [Fix] Little fix for rsa_sign_memory work correctly * [Minor] Little clean up * [Minor] Small fix * [Minor] Little clean up * [Test] Add signature verification test for rsa2048
* [Test] Add more unit testsVsevolod Stakhov2024-08-161-10/+25
|
* [Minor] Slight cleanupVsevolod Stakhov2024-08-151-3/+3
|
* [Test] Add unit tests for ucl functionsVsevolod Stakhov2024-08-131-0/+60
|
* [Test] Add unit testVsevolod Stakhov2024-03-241-0/+11
|
* [Test] Remove some invalid tests for 32 bit platformsVsevolod Stakhov2024-01-181-28/+29
| | | | Issue: #4754
* [Minor] Treat last dot speciallyVsevolod Stakhov2023-08-101-0/+10
|
* [Test] Add one more test for urls parsingVsevolod Stakhov2023-08-101-118/+123
|
* [Test] Add unit testingVsevolod Stakhov2023-04-071-0/+10
|
* [Test] Add a unit testVsevolod Stakhov2023-02-231-48/+154
|
* [Test] Exclude more speed/fuzz tests to allow unit tests execution under 1 secVsevolod Stakhov2022-12-273-87/+16
|
* [Test] Hide expensive unit tests with RSPAMD_LUA_EXPENSIVE_TESTS env variableVsevolod Stakhov2022-12-267-253/+266
|
* [Test] Disable a broken unit testVsevolod Stakhov2022-12-111-3/+3
|
* [Test] Fix a broken unit testVsevolod Stakhov2022-12-111-1/+1
|
* [Test] Add test for the added featuresVsevolod Stakhov2022-12-101-20/+25
|
* [Minor] Add tests and fix some minor issuesVsevolod Stakhov2022-11-221-5/+30
|
* [Minor] Fix tests and invocationVsevolod Stakhov2022-11-221-2/+3
|
* [Test] Add another used domainVsevolod Stakhov2022-11-151-0/+1
|
* [Test] Fix test tldsVsevolod Stakhov2022-11-151-0/+13
|
* [Test] Do not use hardcoded path for sqlite3 testsPetr Vaněk2022-11-071-9/+10
|
* [Test] Remove test case with non-deterministic resultPetr Vaněk2022-11-051-1/+0
| | | | | | | | | | Removed test case does not work with luajit-2.1 anymore as it depends on internal behavior of lujait-2.0. The order of URL list returned by `extract_specific_urls` function from `lualib/lua_util` depends on order of keys in table of TLDs. The test case incorrectly expects "net" and "com" being in front of the table, however, "org" can appear there as well.
* [Test] Fix broken testsVsevolod Stakhov2022-10-251-1/+1
|
* [Rework] Make http normalize path function a generic functionVsevolod Stakhov2022-10-231-1/+1
|
* [Test] Check the decoded length when doing base32 fuzz testVsevolod Stakhov2022-07-161-1/+3
|
* [Minor] Add test for lower_utf8 selector transformationPavel Podkorytov2022-05-211-1/+7
|
* [Minor] Update my email and the copyright yearVsevolod Stakhov2022-03-252-2/+2
|
* [Minor] Microoptimize lua_util.str_endswithAnton Yuzhaninov2022-02-261-1/+32
| | | | | | | | Use find to check string suffix instead of sub (which involves string interning of a returned string). Benchmarks with LuaJIT 2.1.0 shows that an option with find is significantly faster. While here added unit test for this function.
* [Test] Fix mime dump testVsevolod Stakhov2021-12-091-0/+6
|
* [Test] Fix string formattingVsevolod Stakhov2021-12-091-3/+5
|
* [Test] Remove broken testVsevolod Stakhov2021-12-061-3/+4
|
* [Test] Improve envelope stuff testingVsevolod Stakhov2021-11-281-1/+28
|
* [Test] Fix testsVsevolod Stakhov2021-11-271-97/+100
|
* [Test] Oops, add a missing requireVsevolod Stakhov2021-11-241-2/+2
|
* [Test] Add unit test for message to ucl functionVsevolod Stakhov2021-11-241-0/+188
|
* [Test] One more fixVsevolod Stakhov2021-11-241-8/+7
|
* [Test] Add a simple config helper for the unit testsVsevolod Stakhov2021-11-242-24/+31
|
* [Test] Move tests from lua to C++Vsevolod Stakhov2021-10-061-226/+0
|
* [Test] Add the test for the previous fixVsevolod Stakhov2021-09-221-0/+8
|
* [Test] Add tests for broken qp decodingVsevolod Stakhov2021-09-201-0/+10
|
* [Minor] Adjust unit testVsevolod Stakhov2021-07-301-1/+1
|
* [Minor] Try to deal with urls with backslashes in pathVsevolod Stakhov2021-07-301-1/+5
|
* [Minor] Fix parsing of some misformed email addressesVsevolod Stakhov2021-07-211-4/+4
|
* [Test] Fix broken tests as it is confirmed by browser \m/Vsevolod Stakhov2021-07-021-1/+1
|
* [Test] Some fixes to html unit testsVsevolod Stakhov2021-06-281-28/+10
|
* [Test] Remove obsoleted testVsevolod Stakhov2021-06-231-142/+0
|
* [Minor] Fix multiple @ at the beginnigVsevolod Stakhov2021-05-121-0/+3
|
* [Minor] Fix parsing of some bogus urlsVsevolod Stakhov2021-05-121-0/+3
|
* [Test] Add a unit test for buckets variables in the mempoolVsevolod Stakhov2021-05-021-1/+9
|