From: Jiri Denemark Date: Tue, 3 Dec 2019 15:12:41 +0000 (+0100) Subject: Introduce VIR_MIGRATE_PARAM_TLS_DESTINATION migration param X-Git-Tag: v6.0.0-rc1~467 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b8af37213ebdb3d12c6c8ac9c7aff0621941d89;p=thirdparty%2Flibvirt.git Introduce VIR_MIGRATE_PARAM_TLS_DESTINATION migration param 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 Reviewed-by: Pavel Hrdina --- diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-domain.h index 40c71091ec..a099b3d891 100644 --- a/include/libvirt/libvirt-domain.h +++ b/include/libvirt/libvirt-domain.h @@ -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,