Results 1 to 2 of 2

Thread: QSslSocket with >TLS1.0 protocol in qt 4.8.3

  1. #1
    Join Date
    Jun 2015
    Posts
    2
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Question QSslSocket with >TLS1.0 protocol in qt 4.8.3

    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).

  2. #2
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: QSslSocket with >TLS1.0 protocol in qt 4.8.3

    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.

Similar Threads

  1. Getting Device Interface Protocol (SCSI or ATA protocol)
    By Ryuuji in forum General Programming
    Replies: 1
    Last Post: 18th July 2013, 08:37
  2. TCP Protocol Implementation
    By keelerjr12 in forum Qt Programming
    Replies: 4
    Last Post: 27th August 2012, 03:22
  3. protocol design
    By walito in forum Newbie
    Replies: 5
    Last Post: 21st January 2011, 22:27
  4. SSL protocol
    By tpthyd in forum Qt Programming
    Replies: 1
    Last Post: 2nd March 2009, 12:53
  5. Protocol Implementation. ?
    By dheeraj in forum Qt Programming
    Replies: 32
    Last Post: 9th May 2008, 10:26

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.