Re: [libvirt] [PATCH 2/2] Add sanity checking of basic constraints, key purpose & key usage

2011-07-19 Thread Eric Blake
On 07/19/2011 07:55 AM, Daniel P. Berrange wrote: Gnutls requires that certificates have basic constraints present to be used as a CA certificate. OpenSSL doesn't add this data by default, so add a sanity check to catch this situation. Also validate that the key usage and key purpose constraints

[libvirt] [PATCH 2/2] Add sanity checking of basic constraints, key purpose & key usage

2011-07-19 Thread Daniel P. Berrange
Gnutls requires that certificates have basic constraints present to be used as a CA certificate. OpenSSL doesn't add this data by default, so add a sanity check to catch this situation. Also validate that the key usage and key purpose constraints contain correct data * src/rpc/virnettlscontext.c: