summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-11-26 16:24:21 +0100
committerSebastien Helleu <flashcode@flashtux.org>2013-11-26 16:24:21 +0100
commit74333b2270f768a3a7587a4cc51f03dbe522488a (patch)
treebb111aa2c9c1069ba56650421764e8dd2493029a /src/plugins
parent9e1caff33ff5bd03c327595767f8719630a4659b (diff)
downloadweechat-74333b2270f768a3a7587a4cc51f03dbe522488a.zip
irc: suggest lower values for option irc.server.xxx.ssl_dhkey_size after SSL error GNUTLS_E_DH_PRIME_UNACCEPTABLE
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/irc/irc-server.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c
index 5f0c3adb1..66663f910 100644
--- a/src/plugins/irc/irc-server.c
+++ b/src/plugins/irc/irc-server.c
@@ -3289,11 +3289,16 @@ irc_server_connect_cb (void *data, int status, int gnutls_rc, int sock,
weechat_printf (server->buffer,
_("%s%s: you should play with option "
"irc.server.%s.ssl_dhkey_size (current "
- "value is %d)"),
+ "value is %d, try a lower value like %d or "
+ "%d)"),
weechat_prefix ("error"), IRC_PLUGIN_NAME,
server->name,
IRC_SERVER_OPTION_INTEGER (server,
- IRC_SERVER_OPTION_SSL_DHKEY_SIZE));
+ IRC_SERVER_OPTION_SSL_DHKEY_SIZE),
+ IRC_SERVER_OPTION_INTEGER (server,
+ IRC_SERVER_OPTION_SSL_DHKEY_SIZE) / 2,
+ IRC_SERVER_OPTION_INTEGER (server,
+ IRC_SERVER_OPTION_SSL_DHKEY_SIZE) / 4);
}
#else
(void) gnutls_rc;