1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 01:03:14 +02:00

Fix build when gnutls library is not found

This commit is contained in:
Sebastien Helleu
2011-03-07 14:41:24 +01:00
parent 384925eb7e
commit 151c081229
+3 -2
View File
@@ -55,8 +55,9 @@
#include "../plugins/plugin.h"
#ifdef HAVE_GNUTLS
int network_init_ok = 0;
#ifdef HAVE_GNUTLS
gnutls_certificate_credentials gnutls_xcred; /* GnuTLS client credentials */
const int gnutls_cert_type_prio[] = { GNUTLS_CRT_X509, GNUTLS_CRT_OPENPGP, 0 };
#if LIBGNUTLS_VERSION_NUMBER >= 0x010700
@@ -112,13 +113,13 @@ network_init ()
#endif
gnutls_certificate_client_set_retrieve_function (gnutls_xcred,
&hook_connect_gnutls_set_certificates);
network_init_ok = 1;
#endif
#ifdef HAVE_GCRYPT
gcry_check_version (GCRYPT_VERSION);
gcry_control (GCRYCTL_DISABLE_SECMEM, 0);
gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
#endif
network_init_ok = 1;
}
/*