void SshForwardedTcpIpTunnelPrivate::handleOpenSuccessInternal() { QSSH_ASSERT_AND_RETURN(channelState() == AbstractSshChannel::SessionEstablished); try { m_sendFacility.sendChannelOpenConfirmationPacket(remoteChannel(), localChannelId(), initialWindowSize(), maxPacketSize()); } catch (const std::exception &e) { // Won't happen, but let's play it safe. qCWarning(sshLog, "Botan error: %s", e.what()); closeChannel(); } }
void SshRemoteProcessPrivate::handleOpenSuccessInternal() { foreach (const EnvVar &envVar, m_env) { m_sendFacility.sendEnvPacket(remoteChannel(), envVar.first, envVar.second); }