]> xenbits.xensource.com Git - libvirt.git/commit
conf: Add new default TLS X.509 certificate default directory
authorJohn Ferlan <jferlan@redhat.com>
Tue, 14 Jun 2016 18:14:31 +0000 (14:14 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 9 Sep 2016 11:09:49 +0000 (07:09 -0400)
commitc12cb5ed73ec25db184c0204c3476e26357a7314
treefcebc1888e97ff55b87da1266fc009530a49f84d
parent66278d4bc38aecff6661c91ce9cd3fff26e54a91
conf: Add new default TLS X.509 certificate default directory

Rather than specify perhaps multiple TLS X.509 certificate directories,
let's create a "default" directory which can then be used if the service
(e.g. for now vnc and spice) does not supply a default directory.

Since the default for vnc and spice may have existed before without being
supplied, the default check will first check if the service specific path
exists and if so, set the cfg entry to that; otherwise, the default will
be set to the (now) new defaultTLSx509certdir.

Additionally add a "default_tls_x509_verify" entry which can also be used
to force the peer verification option (for vnc it's a x509verify option).
Add/alter the macro for the option being found in the config file to accept
the default value.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/qemu/libvirtd_qemu.aug
src/qemu/qemu.conf
src/qemu/qemu_conf.c
src/qemu/qemu_conf.h
src/qemu/test_libvirtd_qemu.aug.in