]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
chardev: tcp: let TLS run on chardev context
authorPeter Xu <peterx@redhat.com>
Tue, 6 Mar 2018 05:33:19 +0000 (13:33 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 Mar 2018 15:12:46 +0000 (16:12 +0100)
Now qio_channel_tls_handshake() is ready to receive the context.  Let
socket chardev use it, then the TLS handshake of chardev will always be
with the chardev's context.

Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180306053320.15401-9-peterx@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
chardev/char-socket.c

index f6ad6ee4d8f360d48cd1ec103c45dd038c1dcacd..36a8fcc19425567378b6e0c8133f3b199c1603ac 100644 (file)
@@ -751,7 +751,7 @@ static void tcp_chr_tls_init(Chardev *chr)
                               tcp_chr_tls_handshake,
                               chr,
                               NULL,
-                              NULL);
+                              chr->gcontext);
 }