Is it possible to create a new QSslSocket and for it to take ownership over the existing TCP connection, and the old QTcpSocket to be discarded, without interrupting or closing the TCP connection?
I need this to implement explicit FTPS in my FTP server, which requires that initially the connection is unencrypted, and only upon the FTP client's request (the command AUTH SSL
or AUTH TLS
), if it comes at all, an SSL/TLS handshake is initiated.