Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.8.4, 5.0.0 RC 1
-
None
-
233a2f37bfa6c896612cbf9a7db42e8e0da788f5
Description
QSslSocket::protocol() should return the protocol version used for the handshake. Instead, it returns the protocol version where the negotiated cipher has been specified (e.g. SSLv2, SSLv3, TLS 1.2).
The correct version can be retrieved from OpenSSL using const char* SSL_get_version(const SSL ) (*not SSL_CIPHER_get_version(...)), and is one of "TLSv1.2", "TLSv1.1", "TLSv1", "SSLv3" or "SSLv2". This value can (only) be retrieved from openssl/ssl/ssl_lib.c
Attachments
Issue Links
- relates to
-
QTBUG-28470 Documentation of Qssl::SslProtocol is misleading
- Reported