From cdba3da0b743b3012bf6811e875d245c011d7768 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 27 Jul 2012 23:06:09 +0200 Subject: relay: fix compilation with old gnutls (< 2.12.0): remove call to gnutls_sec_param_to_pk_bits --- src/plugins/relay/relay-network.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/plugins') 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 */ -- cgit v1.2.3