aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #5386 from rspamd/vstakhov-maps-stuffVsevolod Stakhov2025-03-242-3/+8
|\ | | | | Improve maps status visibility
| * [Fix] Fix static maps description passingVsevolod Stakhov2025-03-242-3/+8
| |
* | Add support for complex table keys in logging outputDmitry Petrov2025-03-161-82/+95
| |
* | More lua logging improvementsDmitry Petrov2025-03-162-134/+84
| | | | | | | | | | | | * Do not skip numeric indexes that are non-integer or outside of ipairs range when logging table contents * Simplify the code, drop redundant checks * Allow negative stack indexes in lua_logger_out_*() functions
* | [Minor] Lua logging improvementsDmitry Petrov2025-03-162-105/+90
|/ | | | | | | | * Simplify lua_logger_out_str(), fix length check when doing hex output * Add lua_logger_out() with embedded lua_logger_trace struct * Replace high level lua_logger_out_type() calls with lua_logger_out() * Remove unused lua_logger_trace struct references * Include string terminator into buffer length checks, adjust affected places accordingly
* Merge pull request #5378 from amulet1/lua_logger_log_formatVsevolod Stakhov2025-03-111-91/+37
|\ | | | | [Minor] Fix and improve format string processing in lua_logger_log_format()
| * [Minor] Fix and improve format string processing in lua_logger_log_format()Dmitry Petrov2025-03-081-91/+37
| | | | | | | | | | | | | | * Fix handling of %s after % with numeric argument * Fix argument number check * Preserve unhandled % in the output * Redesign to simplify the code
* | [Fix] Use bundled libfmt everywherevstakhov-fmt-embeddingVsevolod Stakhov2025-03-101-1/+1
|/ | | | Issue: #5258
* [Feature] Allow adding timers to task (respecting symbols)vstakhov-ev-base-periodicsVsevolod Stakhov2025-03-012-4/+108
|
* [Feature] Allow to add periodic functions in Lua APIVsevolod Stakhov2025-03-011-1/+112
|
* [Minor] Fix for old OpenSSL, sighVsevolod Stakhov2025-01-251-0/+5
|
* [Minor] Add protection against infinite recursionVsevolod Stakhov2025-01-251-5/+12
|
* [Fix] Make table digests consistentVsevolod Stakhov2025-01-251-4/+76
|
* [Minor] Deal with packed structure member properlyVsevolod Stakhov2025-01-252-2/+2
|
* [Feature] Add UTF8 `sub` and `len` variants for rspamd_textVsevolod Stakhov2025-01-201-3/+101
|
* [Minor] Slightly rework lua shingles to simplify storageVsevolod Stakhov2025-01-084-8/+28
|
* [Minor] Fix some broken linksAndrew Lewis2025-01-072-2/+2
|
* [Fix] Add timer update before timer settingVsevolod Stakhov2025-01-071-43/+54
|
* [Feature] Pass shingles to Lua scriptsvstakhov-lua-shinglesVsevolod Stakhov2025-01-062-5/+5
|
* [Feature] Allow to store shingles as opaque Lua dataVsevolod Stakhov2025-01-064-3/+129
|
* [Feature] Lua_task: Allow to load data into the existing taskVsevolod Stakhov2024-12-201-21/+72
|
* [Feature] Allow to hash any Lua typesVsevolod Stakhov2024-12-201-32/+84
|
* [Fix] Remove USPOOF_SINGLE_SCRIPT_CONFUSABLE from the checksVsevolod Stakhov2024-12-121-1/+12
| | | | | In fact, it just checks if string1 and string2 intersect or not, and it is definitely not the check we want there.
* Merge pull request #5251 from rspamd/vstakhov-cumulative-tcp-timeoutVsevolod Stakhov2024-12-101-1/+7
|\ | | | | [Fix] Use cumulative timeout when dealing with TCP connections
| * [Fix] Use cumulative timeout when dealing with TCP connectionsvstakhov-cumulative-tcp-timeoutVsevolod Stakhov2024-12-091-1/+7
| |
* | [Minor] Add missing action descriptionsAlexander Moisseev2024-12-101-0/+5
|/
* [Rework] Replace fastutf with simdutfVsevolod Stakhov2024-11-292-2/+2
| | | | | | Simdutf is faster and has way better support of the architectures (especially when it comes to non-x86 stuff). Hence, it is a good idea to use it instead of the non-supported fastutf8 stuff.
* [Fix] More fixes to rfc2047 encodingVsevolod Stakhov2024-11-181-4/+9
|
* [Fix] Fix memory leak in `lua_new_text` invocationsVsevolod Stakhov2024-11-014-12/+20
|
* [CritFix] Fix ARC-Seal signingJan Schär2024-10-201-0/+4
| | | | | | | | | | | | | | | | | Signing of ARC-Seal headers was recently broken; the created signatures failed to validate. Most likely, this was caused by commit 1e661a2fc6e3, which changed the way signatures are created in lua_rsa_sign_memory without adding the calls to EVP_PKEY_CTX_set_rsa_padding and EVP_PKEY_CTX_set_signature_md needed with the new interface. After fixing this, some existing tests failed, because the test values passed to the hash parameter did not have the correct size for a sha256 hash. I fixed these by adjusting the length of the test values. Additionally, I extended the "RSA sign" unit test to compare the created signature against the expected one. This is possible because RSA signing is deterministic, and should prevent the same bug from occuring again. Fixes: https://github.com/rspamd/rspamd/issues/5173
* [Rework] Allow `Content-Encoding` standard header for zstd compressionvstakhov-zstd-headersVsevolod Stakhov2024-10-171-1/+2
|
* [Minor] Make API consistentVsevolod Stakhov2024-09-271-4/+4
|
* Merge branch 'master' into vstakhov-utf8-mimevstakhov-utf8-mimeVsevolod Stakhov2024-09-243-30/+43
|\
| * [Minor] Another compatibility fixVsevolod Stakhov2024-09-241-0/+4
| |
| * [Minor] Use portable macro for old OpenSSLvstakhov-ssl-fixesVsevolod Stakhov2024-09-241-1/+1
| |
| * [Minor] Another compatibility fixVsevolod Stakhov2024-09-241-2/+9
| |
| * [Fix] Get rid of EVP_PKEY_CTX_set1_rsa_keygen_pubexpVsevolod Stakhov2024-09-232-21/+0
| | | | | | | | OpenSSL uses 65537 by default, no need in explicit set.
| * [Rework] Allow more flexible keypair encodingvstakhov-keypair-encodingVsevolod Stakhov2024-09-212-6/+29
| |
* | Merge branch 'master' into vstakhov-utf8-mimeVsevolod Stakhov2024-09-172-22/+16
|\|
| * [Minor] Fix some unsafe chmodVsevolod Stakhov2024-09-101-6/+12
| |
| * [Minor] Fix some SSL issuesVsevolod Stakhov2024-09-101-16/+4
| |
* | Merge branch 'master' into vstakhov-utf8-mimeVsevolod Stakhov2024-09-051-28/+80
|\|
| * [Feature] Add tooling to encrypt strings in LuaIvan Stakhov2024-09-051-28/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [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>
* | Merge branch 'master' into vstakhov-utf8-mimeVsevolod Stakhov2024-09-058-656/+555
|\|
| * [Minor] Forgot to handle `parent`Vsevolod Stakhov2024-09-021-3/+27
| |
| * [Minor] Restore legacy way to register symbols...Vsevolod Stakhov2024-09-021-6/+88
| |
| * [Doc] Discourage old brain damaged method of symbols registrationVsevolod Stakhov2024-09-021-1/+5
| |
| * [Fix] Unify lua symbols registrationVsevolod Stakhov2024-09-021-442/+300
| | | | | | | | I'm curious why this bug has been not mentioned for such a long time...
| * Provide OpenSSL 3.0 support for lua_rsa (#5101)Ivan Stakhov2024-08-171-76/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [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
| * [Project] Remove NIST mode from everywhereVsevolod Stakhov2024-08-093-131/+31
| |