forked from mumble-voip/mumble-developers-qt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QSslSocket: backport TLSv1_1 and TLSv1_2 from Qt 5.
- Loading branch information
Showing
5 changed files
with
57 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73e9c4b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I modify my 4.8.5 source similar to this, then TLS 1.2 should be supported? Guessing OpenSSL needs to be updated to at least 1.0.1 as well.
73e9c4b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but you'd need to setup the QSslSocket to use protocol QSsl::TlsV1_2 explicitly.
Another possibility is to use this patch from OpenBSD's ports tree:
http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/x11/qt4/patches/patch-src_network_ssl_qsslsocket_openssl_cpp?rev=1.4&content-type=text/plain
It makes the default of QSslSocket::TlsV1 mean "TLS 1.0 or later."
73e9c4b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The benefit of the OpenBSD patch being that your source code would still be compatible with an unpatched Qt 4.