Sébastien Helleu
9a6a27ef58
core: move crypto functions to wee-crypto.c, rename API function string_hash to crypto_hash
2020-03-01 21:24:27 +01:00
Sébastien Helleu
c4ef3d6c2e
core: merge functions string_hash_binary and string_hash into a single function string_hash
2020-03-01 16:41:28 +01:00
Sébastien Helleu
1ae2591458
core: add function secure_hash_pbkdf2
2020-03-01 14:26:24 +01:00
Sébastien Helleu
3472793d24
script: call function string_hash in script_repo_sha512sum_file to compute SHA512 hash
...
This removes dependency on libgcrypt in script plugin.
2020-03-01 09:08:48 +01:00
Sébastien Helleu
bb363ab27f
relay: call function string_hash_binary in relay_websocket_build_handshake to compute SHA1 hash
...
This removes dependency on libgcrypt in relay plugin.
2020-03-01 09:03:49 +01:00
Sébastien Helleu
7449bc8827
core: add support of CRC32 algorithm in hash functions
2020-02-29 21:12:13 +01:00
Sébastien Helleu
410a5b341f
api: add functions string_hash_binary and string_hash
2020-02-29 21:02:42 +01:00
Sébastien Helleu
7e808e2ef7
core: call function secure_hash_binary in secure_derive_key to compute SHA512 hash
2020-02-29 15:46:25 +01:00
Sébastien Helleu
45fd04ee72
core: return 0 in case of invalid parameters received in function secure_derive_key
2020-02-29 15:46:25 +01:00
Sébastien Helleu
e2135fc3eb
core: add functions to compute binary/hex hash of data
2020-02-29 15:46:25 +01:00
Sébastien Helleu
91701cbdb4
php: fix crash when loading script with PHP 7.4 ( closes #1452 )
2020-02-28 21:28:29 +01:00
Sébastien Helleu
6daa09b0b8
script: fix memory leak in read of script repository file if it has invalid content
2020-02-18 21:04:21 +01:00
Sébastien Helleu
c6e9e18aaa
script: fix unexpected display of scripts list in buffer with command /script list -i
2020-02-16 08:04:58 +01:00
Sébastien Helleu
3fc0f1957e
script: remove dead assignment of variable length in function script_action_list_input
2020-02-16 07:59:02 +01:00
Sébastien Helleu
230f648584
irc: use irc_server_prefix_chars_default if server->prefix_chars is NULL
2020-02-10 21:18:47 +01:00
Sébastien Helleu
9904cb6d2e
irc: fix crash when receiving a malformed message 352 (who)
...
Thanks to Stuart Nevans Locke for reporting the issue.
2020-02-10 07:37:11 +01:00
Sébastien Helleu
40ccacb433
irc: fix crash when a new message 005 is received with longer nick prefixes
...
Thanks to Stuart Nevans Locke for reporting the issue.
2020-02-09 20:04:45 +01:00
Sébastien Helleu
5edbeea338
core: fix unlikely memory leak in completion
2020-02-09 06:56:53 +01:00
Sébastien Helleu
6f4f147d8e
irc: fix crash when receiving a malformed message 324 (channel mode)
...
Thanks to Stuart Nevans Locke for reporting the issue.
2020-02-08 20:24:50 +01:00
Sébastien Helleu
2769989751
irc: remove nested switches in function irc_color_decode_ansi_cb
2020-02-07 21:29:46 +01:00
Sébastien Helleu
60f2734184
irc: use dynamic string in function irc_color_encode
2020-02-05 21:51:11 +01:00
Sébastien Helleu
5b902eb804
irc: replace realloc by dynamic string in function irc_color_decode
2020-02-05 21:50:39 +01:00
Sébastien Helleu
27266ccd02
core: rename function util_get_uptime to util_get_time_diff
...
The two times must be sent as parameters, which makes the function not specific
to uptime. It is now easier to test the function in unit tests.
2020-02-02 13:57:39 +01:00
Sébastien Helleu
4e2718d234
irc: add nick changes in the hotlist (except self nick change)
2020-02-01 23:02:55 +01:00
orbea
6d2d304136
Fix the build with guile-3.0.0.
...
v2: Update configure.ac too.
Signed-off-by: orbea <orbea@riseup.net >
2020-01-30 22:05:43 +01:00
Sébastien Helleu
f980820395
logger: fix crash when disabling logging on a buffer ( closes #1444 )
...
Crash happens if the log file was deleted before disabling logging and if the
option logger.file.info_lines is on.
2020-01-25 13:42:12 +01:00
Sébastien Helleu
4d67af399d
core: flush stdout/stderr before forking in hook_process function ( closes #1441 )
2020-01-20 21:15:15 +01:00
Sébastien Helleu
7cd566e8d3
core: reset variable "old_full_name" after send of signal "buffer_renamed" (issue #1428 )
2020-01-12 17:09:47 +01:00
Sébastien Helleu
b79cd6d546
relay: update buffers synchronization when buffers are renamed ( closes #1428 )
2020-01-12 17:03:16 +01:00
Sébastien Helleu
1fac6fd404
core: add variable "old_full_name" in buffer, set before the buffer is renamed (issue #1428 )
2020-01-12 16:57:08 +01:00
Sébastien Helleu
4f9c4fecd3
irc: case-insensitive comparison on incoming CTCP command, force upper case on CTCP replies ( closes #1439 )
2020-01-11 11:02:41 +01:00
Sébastien Helleu
9ac4639c8c
xfer: send signal "xfer_ended" after the received file has been renamed ( closes #1438 )
2020-01-04 11:19:47 +01:00
Sébastien Helleu
feb6258910
core: update copyright dates
2020-01-04 10:41:26 +01:00
Sébastien Helleu
481da803cb
buflist: add pointer "window" in bar item evaluation
2019-12-26 22:44:19 +01:00
Sébastien Helleu
330149b9b6
relay: reject client with weechat protocol if password or totp is received in init command but not set in WeeChat ( closes #1435 )
2019-12-21 10:47:35 +01:00
Sébastien Helleu
e612e63140
core: fix evaluation of condition with nested "if" ( closes #1434 )
2019-12-18 21:22:36 +01:00
Sébastien Helleu
a13099aa63
core: add debug option "-d" in command /eval (issue #1434 )
2019-12-18 21:18:59 +01:00
Sébastien Helleu
7e833ee60b
core: add missing variable "proxy" in function hook_connect_print_log
2019-12-18 07:55:39 +01:00
Sébastien Helleu
bb62485aa9
irc: fix memory leak when the channel topic is changed
2019-12-15 07:27:45 +01:00
Matthew Horan
f966329862
api: add info "weechat_headless"
2019-12-13 21:30:54 +01:00
Simmo Saan
c487965e8b
irc: add GnuTLS >= 3.1.0 requirement to ssl_password option help (issue #115 )
2019-12-13 21:18:22 +01:00
Simmo Saan
139a7053e4
irc: fix compilation with GnuTLS < 3.1.0 (issue #115 )
...
Due to this ssl_password will be partially unused with GnuTLS < 3.1.0.
In that case an encrypted SSL client cert import will simply fail.
2019-12-13 21:18:22 +01:00
Sébastien Helleu
d66a02ca9d
core: move each hash algorithm in a separate function (issue #635 )
2019-11-25 22:31:36 +01:00
Sébastien Helleu
b43ab911fd
core: add more info in /help weechat.look.nick_color_hash_salt (issue #635 )
2019-11-25 21:38:58 +01:00
Sébastien Helleu
0044fa1902
core: remove allocation of string when salt is used (issue #635 )
2019-11-25 21:38:55 +01:00
Simmo Saan
1a00368888
core: add option weechat.look.nick_color_hash_salt to allow for reshuffling of colors (issue #635 )
2019-11-25 21:38:20 +01:00
Sébastien Helleu
e743e731ec
irc: do not automatically open a channel with name "0" ( closes #1429 )
...
"0" is a special channel name which causes a client to leave all the channels
it is presently on.
Note that when option irc.look.buffer_open_before_join is on, WeeChat may still
open channel buffers with an invalid channel name like "1". The server should
reply something like that, displayed on the server buffer:
1: No such channel
2019-11-21 20:35:32 +01:00
Sébastien Helleu
8cde654c6f
core: set buffer name, short name and title only if the value has changed
...
This fix reduces the number of messages "_buffer_title_changed" sent to the
weechat relay clients in IRC private buffers (this message was sent for every
new message received in the private buffer).
2019-11-17 21:48:17 +01:00
Sébastien Helleu
3a03184d7a
irc: mention /filter command in /help irc.look.smart_filter
2019-11-15 08:38:40 +01:00
Eli Schwartz
5c8ac69f73
python: use more idiomatic cmake pkg-config linking
...
cmake documentation is absolutely atrocious, and I don't know why they
mention all the wrong things to use, and the cargo cult of successfully
writing a cmake build definition (copy-pasting what works from other
projects) also uses all the wrong things. But it turns out it is
possible to correctly link a PkgConfig target despite all that, at
least, *iff* you use cmake >= 3.13. I've chosen option 2, which is to
vendor in cmake >= 3.13's FindPkgConfig module in the previous commit.
Using IMPORTED_TARGET GLOBAL in a pkg-config check will result in a
proper linker target being created. For comparison, this is like using
meson's dependency() target, except meson forces you to do this by
default. The result is that the build system's internal representation
of how to link something, is used instead of manually passing build
flags defined in variables.
This is an important distinction to make, because cmake does not have a
list datatype, and instead turns lists into strings separated by ';'
which are indistinguishable from, like, strings which contain ';'
characters. When you pass the resulting list-which-isn't-really-a-list
to link an executable/library, you either need to preprocess the
variable to replace ';' with ' ' (just in case there are multiple
elements) or use cmake functions which magically know to do this
themselves -- or at least, I assume there are cmake functions that
correctly handle so-called "lists", or there would be no need for
"lists" to exist.
The IMPORTED_TARGET will define a bunch of INTERFACE_* properties which
do seem to do exactly this. The resulting build definition should
actually, correctly, link python, thereby fixing #1398 in a better way.
2019-11-12 21:19:47 +01:00