1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-22 05:57:43 +03:00

r7067: older versions of gnutls don't have GNUTLS_KP_TLS_WWW_SERVER

(This used to be commit 9b568eb957c8ecbe8ebe29bcffdcad3bf7eef8c2)
This commit is contained in:
Andrew Tridgell 2005-05-29 04:22:40 +00:00 committed by Gerald (Jerry) Carter
parent 7756b990f3
commit bd027bd015

View File

@ -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));