summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/tls/config.m42
-rw-r--r--source4/lib/tls/tls.c6
-rw-r--r--source4/lib/tls/tlscert.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/source4/lib/tls/config.m4 b/source4/lib/tls/config.m4
index 33fc2811ca..00d4194b3a 100644
--- a/source4/lib/tls/config.m4
+++ b/source4/lib/tls/config.m4
@@ -25,7 +25,7 @@ if test x$SMB_ENABLE_GNUTLS = xYES; then
#Some older versions have a different type name
AC_CHECK_TYPES([gnutls_datum],,,[#include "gnutls/gnutls.h"])
AC_CHECK_TYPES([gnutls_datum_t],,,[#include "gnutls/gnutls.h"])
- AC_DEFINE(HAVE_LIBGNUTLS,1,[Whether we have gnutls support (SSL)])
+ AC_DEFINE(ENABLE_GNUTLS,1,[Whether we have gnutls support (SSL)])
fi
# end SMB_EXT_LIB_GNUTLS
###############################
diff --git a/source4/lib/tls/tls.c b/source4/lib/tls/tls.c
index 73b39f8c2a..cd65e22bcb 100644
--- a/source4/lib/tls/tls.c
+++ b/source4/lib/tls/tls.c
@@ -26,7 +26,7 @@
#include "lib/events/events.h"
#include "lib/socket/socket.h"
-#if HAVE_LIBGNUTLS
+#if ENABLE_GNUTLS
#include "gnutls/gnutls.h"
#define DH_BITS 1024
@@ -48,7 +48,7 @@ struct tls_context {
struct socket_context *socket;
struct fd_event *fde;
BOOL tls_enabled;
-#if HAVE_LIBGNUTLS
+#if ENABLE_GNUTLS
gnutls_session session;
BOOL done_handshake;
BOOL have_first_byte;
@@ -78,7 +78,7 @@ BOOL tls_enabled(struct socket_context *sock)
}
-#if HAVE_LIBGNUTLS
+#if ENABLE_GNUTLS
static const struct socket_ops tls_socket_ops;
diff --git a/source4/lib/tls/tlscert.c b/source4/lib/tls/tlscert.c
index 3956475ea0..89ede7c79a 100644
--- a/source4/lib/tls/tlscert.c
+++ b/source4/lib/tls/tlscert.c
@@ -22,7 +22,7 @@
#include "includes.h"
-#if HAVE_LIBGNUTLS
+#if ENABLE_GNUTLS
#include "gnutls/gnutls.h"
#include "gnutls/x509.h"