aboutsummaryrefslogtreecommitdiff
path: root/migration/options.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-03-02 12:37:21 +0100
committerJuan Quintela <quintela@redhat.com>2023-04-27 16:37:28 +0200
commit1f2f366c328e851f302c3a97ce4ac18f86a64279 (patch)
treef8a9359d8bd5f9b624862ff1265fd2eafae23cd9 /migration/options.c
parent2eb0308bbd5e20bb20229c790dc2c7f1ae8e3ba9 (diff)
migration: Create migrate_tls_hostname() function
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> --- Moved the type to const char * (vladimir)
Diffstat (limited to 'migration/options.c')
-rw-r--r--migration/options.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/migration/options.c b/migration/options.c
index 014aecc9ee..1aa9575bc0 100644
--- a/migration/options.c
+++ b/migration/options.c
@@ -596,6 +596,13 @@ const char *migrate_tls_creds(void)
return s->parameters.tls_creds;
}
+const char *migrate_tls_hostname(void)
+{
+ MigrationState *s = migrate_get_current();
+
+ return s->parameters.tls_hostname;
+}
+
uint64_t migrate_xbzrle_cache_size(void)
{
MigrationState *s = migrate_get_current();