summaryrefslogtreecommitdiff
path: root/tests/unit
AgeCommit message (Collapse)Author
2020-03-05tests: add tests on functions weecrypto_totp_generate and ↵Sébastien Helleu
weecrypto_totp_validate
2020-03-04tests: add tests on functions weecrypto_hash and weecrypto_hash_pbkdf2 with ↵Sébastien Helleu
NULL hash
2020-03-03tests: add tests on function weecrypto_get_hash_algoSébastien Helleu
2020-03-02core: require libgcrypt >= 1.7.0 for SHA3 algorithmsSébastien Helleu
2020-03-02relay: accept hash of password in init command with option "password_hash"Sébastien Helleu
Allowed algorithms are: * PBKDF2 (SHA256 or SHA512, salt, iterations) * SHA256 * SHA512
2020-03-01api: add function crypto_hash_pbkdf2Sébastien Helleu
2020-03-01core: move crypto functions to wee-crypto.c, rename API function string_hash ↵Sébastien Helleu
to crypto_hash
2020-03-01core: merge functions string_hash_binary and string_hash into a single ↵Sébastien Helleu
function string_hash
2020-03-01core: add function secure_hash_pbkdf2Sébastien Helleu
2020-02-29core: add support of CRC32 algorithm in hash functionsSébastien Helleu
2020-02-29api: add functions string_hash_binary and string_hashSébastien Helleu
2020-02-29tests: add tests on function secure_derive_keySébastien Helleu
2020-02-29core: add functions to compute binary/hex hash of dataSébastien Helleu
2020-02-08tests: add tests on ANSI default text/background colorsSébastien Helleu
2020-02-04tests: add eval tests with debug enabledSébastien Helleu
2020-02-03tests: add unit tests on function util_file_get_contentSébastien Helleu
2020-02-02tests: add unit tests on function util_get_time_diffSébastien Helleu
2020-01-27tests: add eval tests with hdata variables of different typesSébastien Helleu
2020-01-27tests: add eval tests on conditions with text after closing parenthesisSébastien Helleu
2020-01-27tests: add eval tests on conditions with leading and trailing spaces (ignored)Sébastien Helleu
2020-01-27tests: add eval tests on "regex not matching" comparisonSébastien Helleu
2020-01-27tests: add eval tests with hdata list name and pointerSébastien Helleu
2020-01-27tests: add eval tests with buffer local variablesSébastien Helleu
2020-01-27tests: add eval tests on options with different typesSébastien Helleu
2020-01-27tests: add eval test with empty value for "date:"Sébastien Helleu
2020-01-27tests: add eval tests with invalid values for "modifier:"Sébastien Helleu
2020-01-27tests: add eval tests with invalid values for "repeat:"Sébastien Helleu
2020-01-27tests: add eval tests with invalid values for "cut:" and "cutscr:"Sébastien Helleu
2020-01-27tests: add eval test with invalid value for "hide:"Sébastien Helleu
2020-01-27tests: add eval test with invalid regex groupSébastien Helleu
2020-01-27tests: add evaluation tests with ternary operator and escape of prefix ("$")Sébastien Helleu
2020-01-27tests: add other calc tests with multiple operatorsSébastien Helleu
The order of operators are different from the initial test, so this increases the code coverage in wee-calc.c.
2020-01-04core: update copyright datesSébastien Helleu
2019-12-18core: fix evaluation of condition with nested "if" (closes #1434)Sébastien Helleu
2019-11-25tests: add unit tests on hash algorithms with salt (issue #635)Sébastien Helleu
2019-10-12core: add reverse of string for screen in evaluation of expressions with ↵Sébastien Helleu
"revscr:"
2019-10-06core: add support of modifiers in evaluation of expressions with ↵Sébastien Helleu
"modifier:name,data,string" (issue #60)
2019-10-01core: add function to convert WeeChat colors to ANSI colors (issue #528)Sébastien Helleu
2019-10-01core: add support of reverse video in ANSI color codesSébastien Helleu
2019-10-01tests: add tests on GUI color functionsSébastien Helleu
2019-09-27irc: add "user" in output of irc_message_parse (closes #136)Sébastien Helleu
2019-09-24core: add power operator "**" in calc expressions (issue #997)Sébastien Helleu
2019-09-24core: fix wrong results with the unary minus in calc expressionsSébastien Helleu
2019-09-21core: ignore color codes in ${length:xxx} and ${lengthscr:xxx}Sébastien Helleu
2019-09-21core: add "length:xxx" and "lengthscr:xxx" in evaluation of expressionsSébastien Helleu
2019-09-20core: add calculation of expression in evaluation of expressions with ↵Sébastien Helleu
"calc:..." (issue #997)
2019-09-17Fixed segfault during excessive evaluation.Tobias Stoeckmann
It is possible to trigger a segmentation fault while processing an evaluation of repeating string. On a Linux 64 bit system, enter this (or adjust arguments for 32 bit accordingly): /eval -n ${repeat:1073741824,----} It will overflow an integer calculation because int instead of size_t is used. Proper check of int limitations fixes this issue. I haven't changed this specific piece of code to size_t because it would crash in other parts of the code tree instead. For now, int is a limitating factor when it comes to strings (and should be enough for sane use cases). Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2019-08-20core: add values djb2_32 and sum_32 for option weechat.look.nick_color_hash ↵Sébastien Helleu
(issue #1394)
2019-08-19core: use fixed-width integer for computing hashtable DJB2 key hash (closes ↵Sébastien Helleu
#1394)
2019-08-19core: use fixed-width integer for computing nick hash (issue #1394)Sébastien Helleu