]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Add support for TLS X.509 path to TCP chardev backend
authorJohn Ferlan <jferlan@redhat.com>
Thu, 9 Jun 2016 22:30:55 +0000 (18:30 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 9 Sep 2016 12:09:47 +0000 (08:09 -0400)
commitce61c16450d4992612d1fc6f39a39e79bfccead5
treea87039222ca6892c82a8cf33f4f1cc25ab7fdb75
parent3f60a9c32f21158cc498e7bebed6d2b79aeedba1
qemu: Add support for TLS X.509 path to TCP chardev backend

When building a chardev device string for tcp, add the necessary pieces to
access provide the TLS X.509 path to qemu.  This includes generating the
'tls-creds-x509' object and then adding the 'tls-creds' parameter to the
VIR_DOMAIN_CHR_TYPE_TCP command line.

Finally add the tests for the qemu command line. This test will make use
of the "new(ish)" /etc/pki/qemu setting for a TLS certificate environment
by *not* "resetting" the chardevTLSx509certdir prior to running the test.
Also use the default "verify" option (which is "no").

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_alias.c
src/qemu/qemu_alias.h
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-serial-tcp-tlsx509-chardev.args [new file with mode: 0644]
tests/qemuxml2argvtest.c