| 221 | } |
| 222 | |
| 223 | void CChannelSSH::close() |
| 224 | { |
| 225 | qDebug(log) << Q_FUNC_INFO; |
| 226 | |
| 227 | if(!isOpen()) return; |
| 228 | |
| 229 | OnClose(); |
| 230 | |
| 231 | if(m_Session) { |
| 232 | if(ssh_is_connected(m_Session)) |
| 233 | ssh_disconnect(m_Session); |
| 234 | ssh_free(m_Session); |
| 235 | m_Session = NULL; |
| 236 | } |
| 237 | |
| 238 | if(m_pcapFile) |
| 239 | { |
| 240 | ssh_pcap_file_close(m_pcapFile); |
| 241 | ssh_pcap_file_free(m_pcapFile); |
| 242 | m_pcapFile = nullptr; |
| 243 | } |
| 244 | |
| 245 | QIODevice::close(); |
| 246 | } |
| 247 | |
| 248 | int CChannelSSH::verifyKnownhost(ssh_session session) |
| 249 | { |
no outgoing calls
no test coverage detected