]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Introduce VIR_MIGRATE_PARAM_TLS_DESTINATION migration param
authorJiri Denemark <jdenemar@redhat.com>
Tue, 3 Dec 2019 15:12:41 +0000 (16:12 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 9 Dec 2019 09:11:58 +0000 (10:11 +0100)
Normally the TLS certificate from the destination host must match the
host's name for TLS verification to succeed. When the certificate does
not match the destination hostname and the expected cetificate's
hostname is known, this parameter can be used to pass this expected
hostname when starting the migration.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
include/libvirt/libvirt-domain.h

index 40c71091ec3a6772260b69ff891da60def0450ad..a099b3d891c5868a3a987d5b1fb445703086c6d2 100644 (file)
@@ -1051,6 +1051,20 @@ typedef enum {
  */
 # define VIR_MIGRATE_PARAM_PARALLEL_CONNECTIONS     "parallel.connections"
 
+/**
+ * VIR_MIGRATE_PARAM_TLS_DESTINATION:
+ *
+ * virDomainMigrate* params field: override the destination host name used for
+ * TLS verification. As VIR_TYPED_PARAM_STRING.
+ *
+ * Normally the TLS certificate from the destination host must match the host's
+ * name for TLS verification to succeed. When the certificate does not match
+ * the destination hostname and the expected cetificate's hostname is known,
+ * this parameter can be used to pass this expected hostname when starting
+ * the migration.
+ */
+# define VIR_MIGRATE_PARAM_TLS_DESTINATION          "tls.destination"
+
 /* Domain migration. */
 virDomainPtr virDomainMigrate (virDomainPtr domain, virConnectPtr dconn,
                                unsigned long flags, const char *dname,