chardev: tcp: let TLS run on chardev context
commit05b6cc4ae2efbafad9b45a93bccfcae51d018043
authorPeter Xu <peterx@redhat.com>
Tue, 6 Mar 2018 05:33:19 +0000 (6 13:33 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 Mar 2018 15:12:46 +0000 (12 16:12 +0100)
tree9bdd80e7d373b86be6a309914b3811ab9e211821
parent25679e5d58e258e9950685ffbd0cae4cd40d9cc2
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>
chardev/char-socket.c