qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

char: don't silently skip tn3270 protocol init when TLS is enabled

Even if common tn3270 implementations do not support TLS, it is trivial to
have them proxied over a proxy like stunnel which adds TLS at the sockets
layer. We should thus not silently skip tn3270 protocol initialization
when TLS is enabled.

Reviewed-by: Eric Blake <eblake@redhat.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

+1 -2
+1 -2
chardev/char-socket.c
··· 663 663 if (qio_task_propagate_error(task, NULL)) { 664 664 tcp_chr_disconnect(chr); 665 665 } else { 666 - /* tn3270 does not support TLS yet */ 667 - if (s->do_telnetopt && !s->is_tn3270) { 666 + if (s->do_telnetopt) { 668 667 tcp_chr_telnet_init(chr); 669 668 } else { 670 669 tcp_chr_connect(chr);