From bd027bd01522764ef08671a8ac210532d47e7f4f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 29 May 2005 04:22:40 +0000 Subject: r7067: older versions of gnutls don't have GNUTLS_KP_TLS_WWW_SERVER (This used to be commit 9b568eb957c8ecbe8ebe29bcffdcad3bf7eef8c2) --- source4/web_server/tlscert.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4') 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)); -- cgit