startTLS: show negotiated TLS version
This commit is contained in:
parent
3fc9dcf0af
commit
ff3e49b87d
@ -312,7 +312,7 @@ de = {
|
||||
|
||||
# startTLS messages - TODO: Translate
|
||||
"startTLS-initiated": "Attempting secure connection",
|
||||
"startTLS-secure-connection-ok": "Secure connection established",
|
||||
"startTLS-secure-connection-ok": "Secure connection established ({})",
|
||||
"startTLS-not-supported-client": "TLS is not supported",
|
||||
"startTLS-not-supported-server": "This server does not support TLS",
|
||||
|
||||
|
||||
@ -313,7 +313,7 @@ en = {
|
||||
"update-menu-label": "Check for &update",
|
||||
|
||||
"startTLS-initiated": "Attempting secure connection",
|
||||
"startTLS-secure-connection-ok": "Secure connection established",
|
||||
"startTLS-secure-connection-ok": "Secure connection established ({})",
|
||||
"startTLS-not-supported-client": "TLS is not supported",
|
||||
"startTLS-not-supported-server": "This server does not support TLS",
|
||||
|
||||
|
||||
@ -313,7 +313,7 @@ it = {
|
||||
"update-menu-label": "Controlla la presenza di &aggiornamenti",
|
||||
|
||||
"startTLS-initiated": "Tentativo di connessione sicura in corso",
|
||||
"startTLS-secure-connection-ok": "Connessione sicura stabilita",
|
||||
"startTLS-secure-connection-ok": "Connessione sicura stabilita ({})",
|
||||
"startTLS-not-supported-client": "TLS non è supportato",
|
||||
"startTLS-not-supported-server": "Questo server non supporta TLS",
|
||||
|
||||
|
||||
@ -315,7 +315,7 @@ ru = {
|
||||
|
||||
# startTLS messages - TODO: Translate
|
||||
"startTLS-initiated": "Attempting secure connection",
|
||||
"startTLS-secure-connection-ok": "Secure connection established",
|
||||
"startTLS-secure-connection-ok": "Secure connection established ({})",
|
||||
"startTLS-not-supported-client": "TLS is not supported",
|
||||
"startTLS-not-supported-server": "This server does not support TLS",
|
||||
|
||||
|
||||
@ -328,7 +328,8 @@ class SyncClientProtocol(JSONCommandProtocol):
|
||||
answer = message["startTLS"] if "startTLS" in message else None
|
||||
if "true" in answer and not self.logged and self._client.protocolFactory.options is not None:
|
||||
self.transport.startTLS(self._client.protocolFactory.options)
|
||||
self._client.ui.showMessage(getMessage("startTLS-secure-connection-ok"))
|
||||
TLSConnVersion = self.transport.protocol._tlsConnection.get_protocol_version_name()
|
||||
self._client.ui.showMessage(getMessage("startTLS-secure-connection-ok").format(TLSConnVersion))
|
||||
elif "false" in answer:
|
||||
self._client.ui.showErrorMessage(getMessage("startTLS-not-supported-server"))
|
||||
self.sendHello()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user