1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 11:43:13 +02:00

irc: add server option "ssl_fingerprint" (task #12724)

This commit is contained in:
Maarten de Vries
2014-01-21 10:35:38 +01:00
committed by Sebastien Helleu
parent 462b106197
commit 357740f455
6 changed files with 147 additions and 4 deletions
+15
View File
@@ -1569,6 +1569,21 @@ irc_config_server_new_option (struct t_config_file *config_file,
callback_change, callback_change_data,
NULL, NULL);
break;
case IRC_SERVER_OPTION_SSL_FINGERPRINT:
new_option = weechat_config_new_option (
config_file, section,
option_name, "string",
N_("SHA1 fingerprint of certificate accepted from server (it "
"must be exactly 40 hexadecimal digits without separators); "
"if this option is set, the other checks on certificates are "
"NOT performed (option \"ssl_verify\")"),
NULL, 0, 0,
default_value, value,
null_value_allowed,
callback_check_value, callback_check_value_data,
callback_change, callback_change_data,
NULL, NULL);
break;
case IRC_SERVER_OPTION_SSL_VERIFY:
new_option = weechat_config_new_option (
config_file, section,