summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2014-01-23 23:42:54 +0100
committerTreeki <treeki@gmail.com>2014-01-23 23:42:54 +0100
commitf923cd4beaf1c97f5873a9549b216c67520a8cca (patch)
treecacc1560bab125b3c849560d0d03c3c5b099e869 /main.cpp
parent57f49f495d799a435b95d72021c004752628994b (diff)
downloadbounce4-f923cd4beaf1c97f5873a9549b216c67520a8cca.tar.gz
bounce4-f923cd4beaf1c97f5873a9549b216c67520a8cca.zip
add build_static.sh, make gnutls usage a define
Diffstat (limited to '')
-rw-r--r--main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index d772d6c..5330310 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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();