]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qemu-nbd.c
nbd: implement TLS support in the protocol negotiation
[mirror_qemu.git] / qemu-nbd.c
index 9710a2617681ddff92e88515de4513107ce5c640..8acd515913a6e27455cd10a8f08d4ef643313f15 100644 (file)
@@ -251,6 +251,7 @@ static void *nbd_client_thread(void *arg)
     }
 
     ret = nbd_receive_negotiate(QIO_CHANNEL(sioc), NULL, &nbdflags,
+                                NULL, NULL, NULL,
                                 &size, &local_error);
     if (ret < 0) {
         if (local_error) {
@@ -340,7 +341,8 @@ static gboolean nbd_accept(QIOChannel *ioc, GIOCondition cond, gpointer opaque)
 
     nb_fds++;
     nbd_update_server_watch();
-    nbd_client_new(newproto ? NULL : exp, cioc, nbd_client_closed);
+    nbd_client_new(newproto ? NULL : exp, cioc,
+                   NULL, NULL, nbd_client_closed);
     object_unref(OBJECT(cioc));
 
     return TRUE;