summaryrefslogtreecommitdiff
path: root/src/protocol/fqterm_telnet_socket.cpp
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2018-04-28 21:50:54 +0800
committerIru Cai <mytbk920423@gmail.com>2018-04-30 15:20:28 +0800
commitef70cc73c69d04e93c9af5fb49c5d762ba226801 (patch)
tree2f96375bb6047f1a6161c00f659e222711db3cd7 /src/protocol/fqterm_telnet_socket.cpp
parentbec678f312d282cd467a4d13dbf29c37ea111ce7 (diff)
downloadfqterm-ef70cc73c69d04e93c9af5fb49c5d762ba226801.tar.xz
Add a connection info field in FQTermSocket
- the connection info record contains the name of the cipher and MAC algorithms, and the key hash - after doing a key exchange, the connection info will be filled
Diffstat (limited to 'src/protocol/fqterm_telnet_socket.cpp')
-rw-r--r--src/protocol/fqterm_telnet_socket.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/protocol/fqterm_telnet_socket.cpp b/src/protocol/fqterm_telnet_socket.cpp
index af04a8c..170edb9 100644
--- a/src/protocol/fqterm_telnet_socket.cpp
+++ b/src/protocol/fqterm_telnet_socket.cpp
@@ -13,6 +13,7 @@ FQTermTelnetSocket::FQTermTelnetSocket()
FQ_VERIFY(connect(private_socket_, SIGNAL(readyRead()), this, SIGNAL(readyRead())));
FQ_VERIFY(connect(private_socket_, SIGNAL(error(QAbstractSocket::SocketError)), this, SIGNAL(error(QAbstractSocket::SocketError))));
FQ_VERIFY(connect(private_socket_, SIGNAL(socketState(int)), this, SIGNAL(socketState(int))));
+ conn_info.proto = PROTO_TELNET;
}
FQTermTelnetSocket::~FQTermTelnetSocket() {