]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix import of private key with older gnutls
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 25 Jul 2011 17:18:42 +0000 (18:18 +0100)
committerEric Blake <eblake@redhat.com>
Mon, 25 Jul 2011 19:47:11 +0000 (13:47 -0600)
commit677258ab021d843281869734778ae40ad6d2d234
treef3423310b6dd6a694b9a77e1c4caf2de2ba0a1cd
parent567b8d69b97827da0e6e7145edb83ec0d7deff86
Fix import of private key with older gnutls

With older GNUTLS the gnutls_x509_privkey_import function is
unable to import our private key. Instead we must use the
alternative gnutls_x509_privkey_import_pkcs8() (as certtool
does).

* virnettlscontexttest.c: Fix import of private key with
  older gnutls. Also add missing newlines to key
tests/virnettlscontexttest.c