migration: Create migrate_tls_authz() 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)
This commit is contained in:
parent
d5c3e1959c
commit
2eb0308bbd
@ -582,6 +582,13 @@ uint8_t migrate_throttle_trigger_threshold(void)
|
||||
return s->parameters.throttle_trigger_threshold;
|
||||
}
|
||||
|
||||
const char *migrate_tls_authz(void)
|
||||
{
|
||||
MigrationState *s = migrate_get_current();
|
||||
|
||||
return s->parameters.tls_authz;
|
||||
}
|
||||
|
||||
const char *migrate_tls_creds(void)
|
||||
{
|
||||
MigrationState *s = migrate_get_current();
|
||||
|
@ -80,6 +80,7 @@ MultiFDCompression migrate_multifd_compression(void);
|
||||
int migrate_multifd_zlib_level(void);
|
||||
int migrate_multifd_zstd_level(void);
|
||||
uint8_t migrate_throttle_trigger_threshold(void);
|
||||
const char *migrate_tls_authz(void);
|
||||
const char *migrate_tls_creds(void);
|
||||
uint64_t migrate_xbzrle_cache_size(void);
|
||||
|
||||
|
@ -86,10 +86,7 @@ void migration_tls_channel_process_incoming(MigrationState *s,
|
||||
return;
|
||||
}
|
||||
|
||||
tioc = qio_channel_tls_new_server(
|
||||
ioc, creds,
|
||||
s->parameters.tls_authz,
|
||||
errp);
|
||||
tioc = qio_channel_tls_new_server(ioc, creds, migrate_tls_authz(), errp);
|
||||
if (!tioc) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user