aboutsummaryrefslogtreecommitdiff
path: root/chardev
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2018-03-06 13:33:19 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2018-03-12 16:12:46 +0100
commit05b6cc4ae2efbafad9b45a93bccfcae51d018043 (patch)
tree9bdd80e7d373b86be6a309914b3811ab9e211821 /chardev
parent25679e5d58e258e9950685ffbd0cae4cd40d9cc2 (diff)
downloadqemu-05b6cc4ae2efbafad9b45a93bccfcae51d018043.zip
qemu-05b6cc4ae2efbafad9b45a93bccfcae51d018043.tar.gz
qemu-05b6cc4ae2efbafad9b45a93bccfcae51d018043.tar.bz2
chardev: tcp: let TLS run on chardev context
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>
Diffstat (limited to 'chardev')
-rw-r--r--chardev/char-socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chardev/char-socket.c b/chardev/char-socket.c
index f6ad6ee..36a8fcc 100644
--- a/chardev/char-socket.c
+++ b/chardev/char-socket.c
@@ -751,7 +751,7 @@ static void tcp_chr_tls_init(Chardev *chr)
tcp_chr_tls_handshake,
chr,
NULL,
- NULL);
+ chr->gcontext);
}