block/nbd: Use qcrypto_tls_creds_check_endpoint()
commit7b3b616838c30830c004b746e7b1209297118318
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Mon, 28 Jun 2021 16:09:09 +0000 (28 18:09 +0200)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 29 Jun 2021 17:29:47 +0000 (29 18:29 +0100)
treeb606d1e24f7278a3f80d2ea46a70b8dded38955f
parente9ac68083f26759b85ef0d871ca2bbe897218f64
block/nbd: Use qcrypto_tls_creds_check_endpoint()

Avoid accessing QCryptoTLSCreds internals by using
the qcrypto_tls_creds_check_endpoint() helper.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
block/nbd.c
blockdev-nbd.c