OSDN Git Service

migration: fix use of TLS PSK credentials with a UNIX socket
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 10 Mar 2022 17:18:09 +0000 (17:18 +0000)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 21 Apr 2022 18:36:46 +0000 (19:36 +0100)
commit4b2bbca7a0b58475d7ffb2fea05adbe08cde57f8
tree0a4870e0dcac5d50f1acca1214f9d373e6ffcd91
parent0c2b6c85c99d8d2a957e6637c7cc0fd33f2b0540
migration: fix use of TLS PSK credentials with a UNIX socket

The migration TLS code has a check mandating that a hostname be
available when starting a TLS session. This is expected when using
x509 credentials, but is bogus for PSK and anonymous credentials
as neither involve hostname validation.

The TLS crdentials object gained suitable error reporting in the
case of TLS with x509 credentials, so there is no longer any need
for the migration code to do its own (incorrect) validation.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20220310171821.3724080-7-berrange@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/tls.c