mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
qemu: Rename qemuMigrationParamsAddTLSObjects
The new name is qemuMigrationParamsEnableTLS. Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
594f2893d2
commit
a2fae62775
@ -2452,9 +2452,9 @@ qemuMigrationDstPrepareAny(virQEMUDriverPtr driver,
|
||||
* set the migration TLS parameters */
|
||||
if (flags & VIR_MIGRATE_TLS) {
|
||||
cfg = virQEMUDriverGetConfig(driver);
|
||||
if (qemuMigrationParamsAddTLSObjects(driver, vm, cfg, true,
|
||||
QEMU_ASYNC_JOB_MIGRATION_IN,
|
||||
&tlsAlias, &secAlias, migParams) < 0)
|
||||
if (qemuMigrationParamsEnableTLS(driver, vm, cfg, true,
|
||||
QEMU_ASYNC_JOB_MIGRATION_IN,
|
||||
&tlsAlias, &secAlias, migParams) < 0)
|
||||
goto stopjob;
|
||||
|
||||
/* Force reset of 'tls-hostname', it's a source only parameter */
|
||||
@ -3407,9 +3407,9 @@ qemuMigrationSrcRun(virQEMUDriverPtr driver,
|
||||
|
||||
if (flags & VIR_MIGRATE_TLS) {
|
||||
cfg = virQEMUDriverGetConfig(driver);
|
||||
if (qemuMigrationParamsAddTLSObjects(driver, vm, cfg, false,
|
||||
QEMU_ASYNC_JOB_MIGRATION_OUT,
|
||||
&tlsAlias, &secAlias, migParams) < 0)
|
||||
if (qemuMigrationParamsEnableTLS(driver, vm, cfg, false,
|
||||
QEMU_ASYNC_JOB_MIGRATION_OUT,
|
||||
&tlsAlias, &secAlias, migParams) < 0)
|
||||
goto error;
|
||||
|
||||
/* We need to add tls-hostname whenever QEMU itself does not
|
||||
|
@ -133,7 +133,7 @@ qemuMigrationParamsSet(virQEMUDriverPtr driver,
|
||||
}
|
||||
|
||||
|
||||
/* qemuMigrationParamsAddTLSObjects
|
||||
/* qemuMigrationParamsEnableTLS
|
||||
* @driver: pointer to qemu driver
|
||||
* @vm: domain object
|
||||
* @cfg: configuration pointer
|
||||
@ -148,14 +148,14 @@ qemuMigrationParamsSet(virQEMUDriverPtr driver,
|
||||
* Returns 0 on success, -1 on failure
|
||||
*/
|
||||
int
|
||||
qemuMigrationParamsAddTLSObjects(virQEMUDriverPtr driver,
|
||||
virDomainObjPtr vm,
|
||||
virQEMUDriverConfigPtr cfg,
|
||||
bool tlsListen,
|
||||
int asyncJob,
|
||||
char **tlsAlias,
|
||||
char **secAlias,
|
||||
qemuMigrationParamsPtr migParams)
|
||||
qemuMigrationParamsEnableTLS(virQEMUDriverPtr driver,
|
||||
virDomainObjPtr vm,
|
||||
virQEMUDriverConfigPtr cfg,
|
||||
bool tlsListen,
|
||||
int asyncJob,
|
||||
char **tlsAlias,
|
||||
char **secAlias,
|
||||
qemuMigrationParamsPtr migParams)
|
||||
{
|
||||
qemuDomainObjPrivatePtr priv = vm->privateData;
|
||||
virJSONValuePtr tlsProps = NULL;
|
||||
|
@ -72,14 +72,14 @@ qemuMigrationParamsSet(virQEMUDriverPtr driver,
|
||||
qemuMigrationParamsPtr migParams);
|
||||
|
||||
int
|
||||
qemuMigrationParamsAddTLSObjects(virQEMUDriverPtr driver,
|
||||
virDomainObjPtr vm,
|
||||
virQEMUDriverConfigPtr cfg,
|
||||
bool tlsListen,
|
||||
int asyncJob,
|
||||
char **tlsAlias,
|
||||
char **secAlias,
|
||||
qemuMigrationParamsPtr migParams);
|
||||
qemuMigrationParamsEnableTLS(virQEMUDriverPtr driver,
|
||||
virDomainObjPtr vm,
|
||||
virQEMUDriverConfigPtr cfg,
|
||||
bool tlsListen,
|
||||
int asyncJob,
|
||||
char **tlsAlias,
|
||||
char **secAlias,
|
||||
qemuMigrationParamsPtr migParams);
|
||||
|
||||
int
|
||||
qemuMigrationParamsDisableTLS(virDomainObjPtr vm,
|
||||
|
Loading…
Reference in New Issue
Block a user