]> xenbits.xensource.com Git - libvirt.git/commit
qemu: command: Don't generate alias for TLS private key password secret
authorPeter Krempa <pkrempa@redhat.com>
Tue, 29 May 2018 16:04:42 +0000 (18:04 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 5 Jun 2018 06:13:58 +0000 (08:13 +0200)
commit8a5cd05b55a372106651b48ead486ddaffa5bab4
treebb25c2d4df6895961a51c3a99fd031e582fc5b87
parent9083586b215939fdd58474204823354efb0ef536
qemu: command: Don't generate alias for TLS private key password secret

qemuBuildTLSx509CommandLine has no business guessing which alias should
be used. The alias needs to be passed in.

Note that there's a lingering bad design of this, since the secret
object alias is based on the device name and not on the fact that the
secret is used for decrypting of the TLS private key. If we ever add
authentication for chardevs this will bite us.

Thankfully disk code does not support encrypted private keys for TLS so
it can be happily refactored there.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_command.c