r7068: Missed one!
authorTim Potter <tpot@samba.org>
Sun, 29 May 2005 04:24:09 +0000 (04:24 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:17:11 +0000 (13:17 -0500)
source/web_server/tlscert.c

index 1ea5007d1ff51ec523684dbca6ddd9623f7ae68d..22e46a726c2da7da13a168e642612ba4d89c0fe7 100644 (file)
@@ -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));