summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-05-29 04:24:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:11 -0500
commitb7ed3fa7d23a59d43b9cc57b28b5870350630138 (patch)
tree1269a3c4a29e905f74e457bcecfd8a6eedb711db /source4
parentbd027bd01522764ef08671a8ac210532d47e7f4f (diff)
downloadsamba-b7ed3fa7d23a59d43b9cc57b28b5870350630138.tar.gz
samba-b7ed3fa7d23a59d43b9cc57b28b5870350630138.tar.bz2
samba-b7ed3fa7d23a59d43b9cc57b28b5870350630138.zip
r7068: Missed one!
(This used to be commit cebbce9bf57d293dad3c35b1c76c74dd917620e0)
Diffstat (limited to 'source4')
-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 1ea5007d1f..22e46a726c 100644
--- a/source4/web_server/tlscert.c
+++ b/source4/web_server/tlscert.c
@@ -113,7 +113,9 @@ void tls_cert_generate(TALLOC_CTX *mem_ctx,
TLSCHECK(gnutls_x509_crt_set_activation_time(crt, activation));
TLSCHECK(gnutls_x509_crt_set_expiration_time(crt, expiry));
TLSCHECK(gnutls_x509_crt_set_ca_status(crt, 0));
+#ifdef GNUTLS_KP_TLS_WWW_SERVER
TLSCHECK(gnutls_x509_crt_set_key_purpose_oid(crt, GNUTLS_KP_TLS_WWW_SERVER, 0));
+#endif
TLSCHECK(gnutls_x509_crt_set_version(crt, 3));
TLSCHECK(gnutls_x509_crt_get_key_id(crt, 0, keyid, &keyidsize));
TLSCHECK(gnutls_x509_crt_set_subject_key_id(crt, keyid, keyidsize));