From 32aa9ed3ba2117936b8634091330418573d9b8c8 Mon Sep 17 00:00:00 2001 From: Fabian Freyer Date: Tue, 17 May 2016 14:49:20 +0200 Subject: [PATCH] bhyve: Implement virConnectIsEncrypted Being a local connection, bhyve does not support encryption. Therefore trivially return 0. --- src/bhyve/bhyve_driver.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/bhyve/bhyve_driver.c b/src/bhyve/bhyve_driver.c index 8b41f7a142..43c7183381 100644 --- a/src/bhyve/bhyve_driver.c +++ b/src/bhyve/bhyve_driver.c @@ -1522,6 +1522,13 @@ static int bhyveConnectIsAlive(virConnectPtr conn ATTRIBUTE_UNUSED) return 1; } +static int +bhyveConnectIsEncrypted(virConnectPtr conn ATTRIBUTE_UNUSED) +{ + /* Not encrypted, but remote driver takes care of that */ + return 0; +} + static virHypervisorDriver bhyveHypervisorDriver = { .name = "bhyve", .connectOpen = bhyveConnectOpen, /* 1.2.2 */ @@ -1573,6 +1580,7 @@ static virHypervisorDriver bhyveHypervisorDriver = { .domainHasManagedSaveImage = bhyveDomainHasManagedSaveImage, /* 1.2.13 */ .connectGetType = bhyveConnectGetType, /* 1.3.5 */ .connectIsAlive = bhyveConnectIsAlive, /* 1.3.5 */ + .connectIsEncrypted = bhyveConnectIsEncrypted, /* 1.3.5 */ };