|
|
@ -77,13 +77,13 @@
|
|
|
|
#include <kmessagebox.h>
|
|
|
|
#include <kmessagebox.h>
|
|
|
|
#include <tdeio/netaccess.h>
|
|
|
|
#include <tdeio/netaccess.h>
|
|
|
|
#include <ktempfile.h>
|
|
|
|
#include <ktempfile.h>
|
|
|
|
#include <klistview.h>
|
|
|
|
#include <tdelistview.h>
|
|
|
|
#include <kglobal.h>
|
|
|
|
#include <kglobal.h>
|
|
|
|
#include <kstandarddirs.h>
|
|
|
|
#include <kstandarddirs.h>
|
|
|
|
#include <knuminput.h>
|
|
|
|
#include <knuminput.h>
|
|
|
|
#include <tdewallet.h>
|
|
|
|
#include <tdewallet.h>
|
|
|
|
#include <kinputdialog.h>
|
|
|
|
#include <kinputdialog.h>
|
|
|
|
#include <kactioncollection.h>
|
|
|
|
#include <tdeactioncollection.h>
|
|
|
|
#include <tdefiledialog.h>
|
|
|
|
#include <tdefiledialog.h>
|
|
|
|
|
|
|
|
|
|
|
|
#include "kvpnc.h"
|
|
|
|
#include "kvpnc.h"
|
|
|
@ -13992,7 +13992,7 @@ void KVpnc::readFromStderr_ipsecwhack()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void KVpnc::readFromStdout_ipsecwhacklisten()
|
|
|
|
void KVpnc::readFromStdout_ipsecwhactdelisten()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ( IpsecWhackListenProcess == 0 || IpsecGotError )
|
|
|
|
if ( IpsecWhackListenProcess == 0 || IpsecGotError )
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -14142,7 +14142,7 @@ void KVpnc::readFromStdout_ipsecwhacklisten()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void KVpnc::readFromStderr_ipsecwhacklisten()
|
|
|
|
void KVpnc::readFromStderr_ipsecwhactdelisten()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
bool abort = false;
|
|
|
|
bool abort = false;
|
|
|
|
if ( IpsecWhackListenProcess ==0 || IpsecGotError )
|
|
|
|
if ( IpsecWhackListenProcess ==0 || IpsecGotError )
|
|
|
@ -14168,8 +14168,8 @@ void KVpnc::readFromStderr_ipsecwhacklisten()
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// we have to give some time to sleep and try again...
|
|
|
|
// we have to give some time to sleep and try again...
|
|
|
|
connect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStdout() ), this, TQT_SLOT ( readFromStdout_ipsecwhacklisten() ) );
|
|
|
|
connect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStdout() ), this, TQT_SLOT ( readFromStdout_ipsecwhactdelisten() ) );
|
|
|
|
connect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStderr() ), this, TQT_SLOT ( readFromStderr_ipsecwhacklisten() ) );
|
|
|
|
connect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStderr() ), this, TQT_SLOT ( readFromStderr_ipsecwhactdelisten() ) );
|
|
|
|
IpsecWhackListenProcess->tryTerminate();
|
|
|
|
IpsecWhackListenProcess->tryTerminate();
|
|
|
|
sleep ( 2 );
|
|
|
|
sleep ( 2 );
|
|
|
|
if ( IpsecWhackListenProcess->isRunning() )
|
|
|
|
if ( IpsecWhackListenProcess->isRunning() )
|
|
|
@ -21416,13 +21416,13 @@ void KVpnc::ipsecStarted()
|
|
|
|
IpsecWhackListenProcess->addArgument ( "whack" );
|
|
|
|
IpsecWhackListenProcess->addArgument ( "whack" );
|
|
|
|
IpsecWhackListenProcess->addArgument ( "--listen" );
|
|
|
|
IpsecWhackListenProcess->addArgument ( "--listen" );
|
|
|
|
|
|
|
|
|
|
|
|
connect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStdout() ), this, TQT_SLOT ( readFromStdout_ipsecwhacklisten() ) );
|
|
|
|
connect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStdout() ), this, TQT_SLOT ( readFromStdout_ipsecwhactdelisten() ) );
|
|
|
|
connect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStderr() ), this, TQT_SLOT ( readFromStderr_ipsecwhacklisten() ) );
|
|
|
|
connect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStderr() ), this, TQT_SLOT ( readFromStderr_ipsecwhactdelisten() ) );
|
|
|
|
|
|
|
|
|
|
|
|
if ( !IpsecWhackListenProcess->start ( env ) )
|
|
|
|
if ( !IpsecWhackListenProcess->start ( env ) )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
disconnect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStdout() ), this, TQT_SLOT ( readFromStdout_ipsecwhacklisten() ) );
|
|
|
|
disconnect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStdout() ), this, TQT_SLOT ( readFromStdout_ipsecwhactdelisten() ) );
|
|
|
|
disconnect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStderr() ), this, TQT_SLOT ( readFromStderr_ipsecwhacklisten() ) );
|
|
|
|
disconnect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStderr() ), this, TQT_SLOT ( readFromStderr_ipsecwhactdelisten() ) );
|
|
|
|
delete IpsecWhackListenProcess;
|
|
|
|
delete IpsecWhackListenProcess;
|
|
|
|
IpsecWhackListenProcess=0L;
|
|
|
|
IpsecWhackListenProcess=0L;
|
|
|
|
KMessageBox::error ( this, i18n ( "\"%1\" start failed!" ).arg ( GlobalConfig->pathToIpsec+" whack' --listen" ) );
|
|
|
|
KMessageBox::error ( this, i18n ( "\"%1\" start failed!" ).arg ( GlobalConfig->pathToIpsec+" whack' --listen" ) );
|
|
|
|