summaryrefslogtreecommitdiff
path: root/source4/lib/tls/tls.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-08-04 23:46:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:15:22 -0500
commit976b01b01a057de168355f5eab8c6f7caee0a4c1 (patch)
tree9eed55ed9d3323a07338ce023c22d9f9265f6588 /source4/lib/tls/tls.c
parent9481764b1985219e4cedfaab2620e15a074b2dd1 (diff)
downloadsamba-976b01b01a057de168355f5eab8c6f7caee0a4c1.tar.gz
samba-976b01b01a057de168355f5eab8c6f7caee0a4c1.tar.bz2
samba-976b01b01a057de168355f5eab8c6f7caee0a4c1.zip
r17411: Try and compile on older versions of GnuTLS.
Andrew Bartlett (This used to be commit 798c0791d8e8d10dde41a6dbceb0866265f9a709)
Diffstat (limited to 'source4/lib/tls/tls.c')
-rw-r--r--source4/lib/tls/tls.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/tls/tls.c b/source4/lib/tls/tls.c
index 2a02ffa237..5679b5096d 100644
--- a/source4/lib/tls/tls.c
+++ b/source4/lib/tls/tls.c
@@ -31,6 +31,10 @@
#define DH_BITS 1024
+#if defined(HAVE_GNUTLS_DATUM) && !defined(HAVE_GNUTLS_DATUM_T)
+typedef gnutls_datum gnutls_datum_t
+#endif
+
/* hold persistent tls data */
struct tls_params {
gnutls_certificate_credentials x509_cred;