1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 13:56:37 +02:00

relay: add "compression" in response to handshake command (weechat protocol)

The value can be "zlib" (default in relay) or "off".
This commit is contained in:
Sébastien Helleu
2020-05-02 12:45:47 +02:00
parent 46a2979aa1
commit 7699c0b757
5 changed files with 15 additions and 0 deletions
+3
View File
@@ -168,6 +168,9 @@ WeeChat replies with a hashtable containing the following keys and values:
compute the hash of password on this nonce, concatenated with a client nonce
and the user password (the _relay_ nonce + the client nonce is the salt used
in the password hash algorithm)
* _compression_: compression type:
** _zlib_: messages are compressed with _zlib_
** _off_: messages are not compressed
[TIP]
With WeeChat ≤ 2.8, the command _handshake_ is not implemented, WeeChat silently
+3
View File
@@ -177,6 +177,9 @@ suivantes :
concaténé avec un nonce client et le mot de passe utilisateur (le nonce
_relay_ + le nonce client constituent le sel utilisé dans l'algorithme de
hachage du mot de passe)
* _compression_ : type de compression :
** _zlib_ : les messages sont compressés avec _zlib_
** _off_ : les messages ne sont pas compressés
[TIP]
Avec WeeChat ≤ 2.8, la commande _handshake_ n'est pas implémentée, WeeChat ignore
+3
View File
@@ -177,6 +177,9 @@ WeeChat replies with a hashtable containing the following keys and values:
compute the hash of password on this nonce, concatenated with a client nonce
and the user password (the _relay_ nonce + the client nonce is the salt used
in the password hash algorithm)
* _compression_: compression type:
** _zlib_: messages are compressed with _zlib_
** _off_: messages are not compressed
[TIP]
With WeeChat ≤ 2.8, the command _handshake_ is not implemented, WeeChat silently
@@ -199,6 +199,10 @@ relay_weechat_protocol_handshake_reply (struct t_relay_client *client,
hashtable,
"totp",
(totp_secret && totp_secret[0]) ? "on" : "off");
weechat_hashtable_set (
hashtable,
"compression",
relay_weechat_compression_string[RELAY_WEECHAT_DATA(client, compression)]);
msg = relay_weechat_msg_new (id);
if (msg)
@@ -60,6 +60,8 @@ struct t_relay_weechat_data
struct t_hook *hook_timer_nicklist; /* timer for sending nicklist */
};
extern char *relay_weechat_compression_string[];
extern int relay_weechat_compression_search (const char *compression);
extern void relay_weechat_hook_signals (struct t_relay_client *client);
extern void relay_weechat_unhook_signals (struct t_relay_client *client);