diff options
author | Stefan Hacker <dd0t@users.sourceforge.net> | 2015-09-27 02:02:45 +0300 |
---|---|---|
committer | Stefan Hacker <dd0t@users.sourceforge.net> | 2015-10-04 13:29:12 +0300 |
commit | e8027bd664cd924acd47070fb434881530685a87 (patch) | |
tree | e4da85d543d32f615018d24201a0a1da1a84fc63 /src/Connection.h | |
parent | 13e494c60beb20748eeb8be126b27e1226d168c8 (diff) |
Output more control channel encryption parameters
As mentioned in #1811 we previously only output the
encryption algorithm as well as the width of the key
in the server information dialog.
This patch adds the encryption protocol, authentication
method and key-exchange method to the dialog. The
wording is similar to what Chrome uses to make it easier
to google.
As the option to retrieve the actual encryption protocol
for the connection was only added in Qt 5.4 we output
"TLS" in clients built with earlier versions as we cannot
know which version we are actually using.
Due to limitations in the information Qt provides us the
current output is far from ideal. To fix that additional
work is requored which will be done in a followup patch.
Diffstat (limited to 'src/Connection.h')
-rw-r--r-- | src/Connection.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Connection.h b/src/Connection.h index 53518ecb2..8257402f8 100644 --- a/src/Connection.h +++ b/src/Connection.h @@ -96,6 +96,8 @@ class Connection : public QObject { QList<QSslCertificate> peerCertificateChain() const; QSslCipher sessionCipher() const; + QSsl::SslProtocol sessionProtocol() const; + QString sessionProtocolString() const; QHostAddress peerAddress() const; quint16 peerPort() const; bool bDisconnectedEmitted; |