aboutsummaryrefslogtreecommitdiff
path: root/migration/options.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-03-02 12:17:06 +0100
committerJuan Quintela <quintela@redhat.com>2023-04-27 16:37:28 +0200
commitd5c3e1959cbabe9456bf1d5860ad718c6cd27fb8 (patch)
treef47a57d52e3413a02c9ed5a258b0099f7d1fbf66 /migration/options.c
parentb1a8795654561b23eaf5bb134b61e5b23545046d (diff)
migration: Create migrate_tls_creds() 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 da99c6298f..b5d4ebef8d 100644
--- a/migration/options.c
+++ b/migration/options.c
@@ -582,6 +582,13 @@ uint8_t migrate_throttle_trigger_threshold(void)
return s->parameters.throttle_trigger_threshold;
}
+const char *migrate_tls_creds(void)
+{
+ MigrationState *s = migrate_get_current();
+
+ return s->parameters.tls_creds;
+}
+
uint64_t migrate_xbzrle_cache_size(void)
{
MigrationState *s = migrate_get_current();