From ef70cc73c69d04e93c9af5fb49c5d762ba226801 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Sat, 28 Apr 2018 21:50:54 +0800 Subject: 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 --- src/protocol/fqterm_telnet_socket.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/protocol/fqterm_telnet_socket.cpp') 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() { -- cgit v1.2.3