summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-07-27 23:06:09 +0200
committerSebastien Helleu <flashcode@flashtux.org>2012-07-27 23:06:09 +0200
commitcdba3da0b743b3012bf6811e875d245c011d7768 (patch)
tree7e85b945634c9002a0e30b09b590315f94c9dcd7 /src/plugins
parent6ff197fedd79a16a8a70c90f57ebed384d889781 (diff)
downloadweechat-cdba3da0b743b3012bf6811e875d245c011d7768.zip
relay: fix compilation with old gnutls (< 2.12.0): remove call to gnutls_sec_param_to_pk_bits
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/relay/relay-network.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/relay/relay-network.c b/src/plugins/relay/relay-network.c
index ca2c8d878..c19178c8b 100644
--- a/src/plugins/relay/relay-network.c
+++ b/src/plugins/relay/relay-network.c
@@ -113,16 +113,14 @@ void
relay_network_init ()
{
#ifdef HAVE_GNUTLS
- int bits;
/* credentials */
gnutls_certificate_allocate_credentials (&relay_gnutls_x509_cred);
relay_network_set_ssl_cert_key (0);
/* Diffie-Hellman parameters */
- bits = gnutls_sec_param_to_pk_bits (GNUTLS_PK_DH, GNUTLS_SEC_PARAM_LOW);
gnutls_dh_params_init (&relay_gnutls_dh_params);
- gnutls_dh_params_generate2 (relay_gnutls_dh_params, bits);
+ gnutls_dh_params_generate2 (relay_gnutls_dh_params, 1024);
gnutls_certificate_set_dh_params (relay_gnutls_x509_cred, relay_gnutls_dh_params);
/* priority */