summaryrefslogtreecommitdiff
path: root/src/protocol/fqterm_ssh_socket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol/fqterm_ssh_socket.cpp')
-rw-r--r--src/protocol/fqterm_ssh_socket.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/protocol/fqterm_ssh_socket.cpp b/src/protocol/fqterm_ssh_socket.cpp
index c61fe25..d6c2e61 100644
--- a/src/protocol/fqterm_ssh_socket.cpp
+++ b/src/protocol/fqterm_ssh_socket.cpp
@@ -192,6 +192,12 @@ void FQTermSSHSocket::socketReadyRead() {
FQ_TRACE("sshsocket", 3) << "SSH version chosen: " << version;
if (version == 1) {
+ bool isok;
+ emit warnInsecure(tr("You are using the insecure SSH1 connection, continue?"), &isok);
+ if (!isok) {
+ handleError(tr("Closed by user because of the insecure SSH1 connection."));
+ return;
+ }
init(1);
ssh_version_ = 1;
socketWriteBlock(V1STR, strlen(V1STR));