[PATCH 1/2] bhyve: Implement virConnectIsEncrypted

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 8b41f7a..43c7183 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 */
 };
 
 
-- 
2.7.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]