PDA

View Full Version : QSslSocket with >TLS1.0 protocol in qt 4.8.3



qinception
17th June 2015, 08:40
Hi all,
I need to use TLS1.2 protocol with QSslsocket while connecting to a server. But current Qt embedded version which i am using is 4.8.3. I came to know by documentation that QSslSocket->setProtocol() API supports only till TLS1.0. Newer protocol support has been added in > Qt5.0. Is there anyway to achieve this by sub-classing QSslsocket() or any other way of implementation? My openssl library version is 1.0.2(which supports till TLS1.2).

jefftee
18th June 2015, 01:32
I am just guessing, but I think it would be tough to implement a protocol not supported by the base class QSslSocket. The qsslsocket_openssl.cpp code in 5.4.2 has code that appears to support TLS 1.2, but if you subclass QSslSocket, you don't have access to the class private data/functions.

Wish I had better news, but in my opinion attempting to subclass QSslSocket from Qt 4.x won't be possible.