mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 13:26:38 +02:00
irc: fix length of string for SHA-512, SHA-256 and SHA-1 in help on ssl_fingerprint option
This commit is contained in:
@@ -1735,8 +1735,8 @@ irc_config_server_new_option (struct t_config_file *config_file,
|
||||
option_name, "string",
|
||||
N_("fingerprint of certificate which is trusted and accepted "
|
||||
"for the server; only hexadecimal digits are allowed (0-9, "
|
||||
"a-f): 64 chars for SHA-512, 32 chars for SHA-256, "
|
||||
"20 chars for SHA-1 (insecure, not recommended); many "
|
||||
"a-f): 128 chars for SHA-512, 64 chars for SHA-256, "
|
||||
"40 chars for SHA-1 (insecure, not recommended); many "
|
||||
"fingerprints can be separated by commas; if this option "
|
||||
"is set, the other checks on certificates are NOT "
|
||||
"performed (option \"ssl_verify\") "
|
||||
|
||||
@@ -4147,7 +4147,7 @@ irc_server_fingerprint_search_algo_with_size (int size)
|
||||
* Returns a string with sizes of allowed fingerprint,
|
||||
* in number of hexadecimal digits (== bits / 4).
|
||||
*
|
||||
* Example of output: "64=SHA-512, 32=SHA-256, 20=SHA-1".
|
||||
* Example of output: "128=SHA-512, 64=SHA-256, 40=SHA-1".
|
||||
*
|
||||
* Note: result must be freed after use.
|
||||
*/
|
||||
@@ -4165,7 +4165,7 @@ irc_server_fingerprint_str_sizes ()
|
||||
{
|
||||
snprintf (str_one_size, sizeof (str_one_size),
|
||||
"%d=%s%s",
|
||||
irc_fingerprint_digest_algos_size[i] / 8,
|
||||
irc_fingerprint_digest_algos_size[i] / 4,
|
||||
irc_fingerprint_digest_algos_name[i],
|
||||
(i > 0) ? ", " : "");
|
||||
strcat (str_sizes, str_one_size);
|
||||
|
||||
Reference in New Issue
Block a user