Allows libvirt-perl to build with upstream libvirt.
Signed-off-by: John Ferlan <jferlan(a)redhat.com>
---
Changes | 1 +
Virt.xs | 1 +
lib/Sys/Virt/Secret.pm | 7 +++++++
3 files changed, 9 insertions(+)
diff --git a/Changes b/Changes
index 650b40c..8eb298a 100644
--- a/Changes
+++ b/Changes
@@ -4,6 +4,7 @@ Revision history for perl module Sys::Virt
- Add PERF_PARAM_CACHE_MISSES, PERF_PARAM_CACHE_REFERENCES,
PERF_PARAM_CPU_CYCLES, PERF_PARAM_INSTRUCTIONS constants
+ - Add USAGE_TYPE_TLS
2.2.0 2016-09-05
diff --git a/Virt.xs b/Virt.xs
index ac337ad..2206e40 100644
--- a/Virt.xs
+++ b/Virt.xs
@@ -8685,6 +8685,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_TLS, USAGE_TYPE_TLS);
REGISTER_CONSTANT(VIR_CONNECT_LIST_SECRETS_EPHEMERAL, LIST_EPHEMERAL);
diff --git a/lib/Sys/Virt/Secret.pm b/lib/Sys/Virt/Secret.pm
index b871190..1f2defc 100644
--- a/lib/Sys/Virt/Secret.pm
+++ b/lib/Sys/Virt/Secret.pm
@@ -149,6 +149,13 @@ 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_TLS
+
+The constant for secrets which are to be used for authenticating
+for the TLS environment. The usage ID for the secret can be any
+name. The UUID for the secret will be used by the hypervisor to
+fetch the secret value.
+
=back
=head2 LIST FILTERING
--
2.7.4