Re: [Libvir] PATCH: More useful error messages with missing certs

2007-07-12 Thread Richard W.M. Jones
Daniel P. Berrange wrote: On the server end if you try to start the server with TLS enabled and you don't have the certs setup, you get a cryptic: gnutls_certificate_set_x509_trust_file: Error while reading file. Rather useless the gnutls error message not telling you what file was missing.

Re: [Libvir] PATCH: More useful error messages with missing certs

2007-07-12 Thread Daniel P. Berrange
On Wed, Jul 11, 2007 at 04:10:10PM -0400, Daniel Veillard wrote: On Wed, Jul 11, 2007 at 08:51:26PM +0100, Daniel P. Berrange wrote: On the server end if you try to start the server with TLS enabled and you don't have the certs setup, you get a cryptic:

Re: [Libvir] PATCH: More useful error messages with missing certs

2007-07-12 Thread Daniel Veillard
On Thu, Jul 12, 2007 at 03:59:57PM +0100, Daniel P. Berrange wrote: On Wed, Jul 11, 2007 at 04:10:10PM -0400, Daniel Veillard wrote: +#define CHECK_CERT(type, file) \ +do { if (stat(file, sb) 0) { \ +qemudLog (QEMUD_ERR, Cannot