]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: fill out usage-specific TLS settings after parsing
authorJán Tomko <jtomko@redhat.com>
Mon, 14 Jan 2019 22:06:06 +0000 (23:06 +0100)
committerJán Tomko <jtomko@redhat.com>
Thu, 17 Jan 2019 14:53:20 +0000 (15:53 +0100)
commit926cb125a457d6bab4ebc9c8c8f5dc55b5155cc2
tree6bb46cd502d706fb527c25bc5d00ca11e867adb5
parent5ce02870c4be4e289a1a511e7a3d4d4d072be0d0
qemu: fill out usage-specific TLS settings after parsing

Instead of copying the default default values upfront
and then wondering whether the user has given us a new default,
leave the per-usage TLS certdirs and secrets empty during
parsing and only fill them afterwards if they weren't provided
by the user.

This means that instead of looking whether the specific certdir
paths match the default default, the Validate function (which
is called in between parsing and setting the defaults) can error
out for missing directories if the value is present, because
it must've come from the user.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_conf.c