diff options
Diffstat (limited to '')
-rw-r--r-- | main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,10 +1,10 @@ #include "core.h" #include "dns.h" +#ifdef USE_GNUTLS static gnutls_dh_params_t dh_params; gnutls_certificate_credentials_t g_serverCreds, g_clientCreds; - bool initTLS() { int ret; ret = gnutls_global_init(); @@ -39,10 +39,13 @@ bool initTLS() { return true; } +#endif int main(int argc, char **argv) { +#ifdef USE_GNUTLS if (!initTLS()) return EXIT_FAILURE; +#endif DNS::start(); |