diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-08-21 23:00:53 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:16:22 -0500 |
commit | 714f3991a1895c6b2487bbc215ec2943902a93b4 (patch) | |
tree | bf4bef39524047a47f27ce121a475296b6544c0b | |
parent | 19a88e32cbe7df4897b76598cac070256a916d12 (diff) | |
download | samba-714f3991a1895c6b2487bbc215ec2943902a93b4.tar.gz samba-714f3991a1895c6b2487bbc215ec2943902a93b4.tar.bz2 samba-714f3991a1895c6b2487bbc215ec2943902a93b4.zip |
r17674: fixed a problem on with our configure logic on systems that have
libgnutls but not some of the crt functions
(This used to be commit 7a0264c52dd8ab1b1bb321462f66955a866d90a9)
-rw-r--r-- | source4/lib/tls/config.m4 | 2 | ||||
-rw-r--r-- | source4/lib/tls/tls.c | 6 | ||||
-rw-r--r-- | source4/lib/tls/tlscert.c | 2 |
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" |