[libvirt] [libvirt-perl PATCH] Add support for VIR_SECRET_USAGE_TYPE_PASSPHRASE

Martin Kletzander mkletzan at redhat.com
Mon Jul 4 14:37:27 UTC 2016


Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
---
This fixes a build for me with upstream libvirt.

 Virt.xs                | 1 +
 lib/Sys/Virt/Secret.pm | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/Virt.xs b/Virt.xs
index cf4e5bc5337c..4c9f86b972f3 100644
--- a/Virt.xs
+++ b/Virt.xs
@@ -8534,6 +8534,7 @@ BOOT:
       REGISTER_CONSTANT(VIR_SECRET_USAGE_TYPE_VOLUME, USAGE_TYPE_VOLUME);
       REGISTER_CONSTANT(VIR_SECRET_USAGE_TYPE_CEPH, USAGE_TYPE_CEPH);
       REGISTER_CONSTANT(VIR_SECRET_USAGE_TYPE_ISCSI, USAGE_TYPE_ISCSI);
+      REGISTER_CONSTANT(VIR_SECRET_USAGE_TYPE_PASSPHRASE, USAGE_TYPE_PASSPHRASE);


       REGISTER_CONSTANT(VIR_CONNECT_LIST_SECRETS_EPHEMERAL, LIST_EPHEMERAL);
diff --git a/lib/Sys/Virt/Secret.pm b/lib/Sys/Virt/Secret.pm
index b8711909e7ba..beab68badef3 100644
--- a/lib/Sys/Virt/Secret.pm
+++ b/lib/Sys/Virt/Secret.pm
@@ -149,6 +149,11 @@ The constant for secrets which are to be used for authenticating
 to iSCSI storage volumes. The usage ID for secrets will refer to
 the server name.

+=item Sys::Virt::Secret::USAGE_TYPE_PASSPHRASE
+
+The constant for general purpose secret to be used by various libvirt
+objects to provide a single passphrase.
+
 =back

 =head2 LIST FILTERING
--
2.9.0




More information about the libvir-list mailing list