summaryrefslogtreecommitdiff
path: root/source4/web_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-05-29 04:22:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:11 -0500
commitbd027bd01522764ef08671a8ac210532d47e7f4f (patch)
tree9d2d7cf25a249beafdc5ec63d1c7dbaf201e5d1d /source4/web_server
parent7756b990f38495bf98e335b56bdc510659c34bdb (diff)
downloadsamba-bd027bd01522764ef08671a8ac210532d47e7f4f.tar.gz
samba-bd027bd01522764ef08671a8ac210532d47e7f4f.tar.bz2
samba-bd027bd01522764ef08671a8ac210532d47e7f4f.zip
r7067: older versions of gnutls don't have GNUTLS_KP_TLS_WWW_SERVER
(This used to be commit 9b568eb957c8ecbe8ebe29bcffdcad3bf7eef8c2)
Diffstat (limited to 'source4/web_server')
-rw-r--r--source4/web_server/tlscert.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/web_server/tlscert.c b/source4/web_server/tlscert.c
index 81b2a0ab45..1ea5007d1f 100644
--- a/source4/web_server/tlscert.c
+++ b/source4/web_server/tlscert.c
@@ -89,7 +89,9 @@ void tls_cert_generate(TALLOC_CTX *mem_ctx,
TLSCHECK(gnutls_x509_crt_set_activation_time(cacrt, activation));
TLSCHECK(gnutls_x509_crt_set_expiration_time(cacrt, expiry));
TLSCHECK(gnutls_x509_crt_set_ca_status(cacrt, 0));
+#ifdef GNUTLS_KP_TLS_WWW_SERVER
TLSCHECK(gnutls_x509_crt_set_key_purpose_oid(cacrt, GNUTLS_KP_TLS_WWW_SERVER, 0));
+#endif
TLSCHECK(gnutls_x509_crt_set_version(cacrt, 3));
TLSCHECK(gnutls_x509_crt_get_key_id(cacrt, 0, keyid, &keyidsize));
TLSCHECK(gnutls_x509_crt_set_subject_key_id(cacrt, keyid, keyidsize));