diff options
author | Juan Quintela <quintela@redhat.com> | 2023-03-02 10:41:23 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-04-27 10:18:25 +0200 |
commit | 10d4703be5d884bbbb6ecafe0e8bb270ad6ea937 (patch) | |
tree | 8e9b5babbdef1d8e0ed82df715261b89645c384c /migration/tls.c | |
parent | 66f8b5a5ad17790e0039b39bf2b342fcb340b4ab (diff) |
migration: Move migrate_use_tls() to options.c
Once there, rename it to migrate_tls() and make it return bool for
consistency.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
---
Fix typos found by fabiano
Diffstat (limited to 'migration/tls.c')
-rw-r--r-- | migration/tls.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/migration/tls.c b/migration/tls.c index 4d2166a209..acd38e0b62 100644 --- a/migration/tls.c +++ b/migration/tls.c @@ -22,6 +22,7 @@ #include "channel.h" #include "migration.h" #include "tls.h" +#include "options.h" #include "crypto/tlscreds.h" #include "qemu/error-report.h" #include "qapi/error.h" @@ -165,7 +166,7 @@ void migration_tls_channel_connect(MigrationState *s, bool migrate_channel_requires_tls_upgrade(QIOChannel *ioc) { - if (!migrate_use_tls()) { + if (!migrate_tls()) { return false; } |