]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: refactor TPM helper methods to reduce duplicationm
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 24 Nov 2021 13:13:15 +0000 (13:13 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 1 Dec 2021 12:14:03 +0000 (12:14 +0000)
commite715648e8ba193fc377fcf52d641f3c9175b44d6
tree88dc5edcb61175a04205402a9d62cfde9cb53569
parent7475907d1ab0c3f57cd238380124184dda98b3db
util: refactor TPM helper methods to reduce duplicationm

The TPM helper methods for querying the binary path and capabilities
have the same patterns across all swtpm binaries. This code duplication
can be reduced by introducing helper methods.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/util/virtpm.c