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:
Juan Quintela 2023-03-02 12:33:50 +01:00
parent d5c3e1959c
commit 2eb0308bbd
3 changed files with 9 additions and 4 deletions

View file

@ -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;
}