diff options
Diffstat (limited to 'doc/en')
-rw-r--r-- | doc/en/autogen/user/irc_options.txt | 15 | ||||
-rw-r--r-- | doc/en/weechat_plugin_api.en.txt | 27 |
2 files changed, 42 insertions, 0 deletions
diff --git a/doc/en/autogen/user/irc_options.txt b/doc/en/autogen/user/irc_options.txt index 5dcfdcc7f..2b578c097 100644 --- a/doc/en/autogen/user/irc_options.txt +++ b/doc/en/autogen/user/irc_options.txt @@ -308,6 +308,21 @@ ** type: string ** values: any string (default value: "") +* *irc.server_default.sasl_mechanism* +** description: mechanism for SASL authentication +** type: integer +** values: plain (default value: plain) + +* *irc.server_default.sasl_password* +** description: password for SASL authentication +** type: string +** values: any string (default value: "") + +* *irc.server_default.sasl_username* +** description: username for SASL authentication +** type: string +** values: any string (default value: "") + * *irc.server_default.ssl* ** description: use SSL for server communication ** type: boolean diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt index df447f3d8..6c5d3b518 100644 --- a/doc/en/weechat_plugin_api.en.txt +++ b/doc/en/weechat_plugin_api.en.txt @@ -1108,6 +1108,33 @@ str = weechat.string_remove_color(string, replacement) str = weechat.string_remove_color(my_string, "?") ---------------------------------------- +weechat_string_encode_base64 +^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Encode a string in base64. + +Prototype: + +[source,C] +---------------------------------------- +void weechat_string_encode_base64 (const char *from, int length, char *to); +---------------------------------------- + +Arguments: + +* 'from': string to encode +* 'length': length of string to encode (for example `strlen(from)`) +* 'to': pointer to string to store result (must be long enough) + +Example: + +[source,C] +---------------------------------------- +char *string = "abcdefgh", result[128]; +weechat_string_encode_base64 (string, strlen (string), result); +/* result == "YWJjZGVmZ2g=" */ +---------------------------------------- + [[utf-8]] UTF-8 ~~~~~ |