|
|
|
@ -259,7 +259,7 @@ void ImportCertificateDialog::accept()
|
|
|
|
|
}
|
|
|
|
|
if ( importOk )
|
|
|
|
|
{
|
|
|
|
|
if ( TQString ( main->PrivateKeyPasswordEdit->password() ) != TQString ( main->PrivateKeyAgainPasswordEdit->password() ) )
|
|
|
|
|
if ( main->PrivateKeyPasswordEdit->password() != main->PrivateKeyAgainPasswordEdit->password() )
|
|
|
|
|
{
|
|
|
|
|
importOk = false;
|
|
|
|
|
KMessageBox::sorry ( 0, i18n ( "Private key passwords does not match!" ), i18n ( "Passwords Do Not Match" ) );
|
|
|
|
@ -268,7 +268,7 @@ void ImportCertificateDialog::accept()
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
privatekeypassword= TQString ( main->PrivateKeyAgainPasswordEdit->password() );
|
|
|
|
|
privatekeypassword = main->PrivateKeyAgainPasswordEdit->password();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -291,7 +291,7 @@ void ImportCertificateDialog::accept()
|
|
|
|
|
}
|
|
|
|
|
if ( importOk )
|
|
|
|
|
{
|
|
|
|
|
if ( main->UsePrivateKeyPasswordCheckBox->isChecked() && (TQString ( main->PrivateKeyPasswordEdit->password() ) != TQString ( main->PrivateKeyAgainPasswordEdit->password() ) ))
|
|
|
|
|
if ( main->UsePrivateKeyPasswordCheckBox->isChecked() && (main->PrivateKeyPasswordEdit->password() != main->PrivateKeyAgainPasswordEdit->password() ))
|
|
|
|
|
{
|
|
|
|
|
importOk = false;
|
|
|
|
|
KMessageBox::sorry ( 0, i18n ( "Certificate passwords does not match!" ), i18n ( "Passwords Do Not Match" ) );
|
|
|
|
@ -301,7 +301,7 @@ void ImportCertificateDialog::accept()
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (main->UsePrivateKeyPasswordCheckBox->isChecked() )
|
|
|
|
|
privatekeypassword= TQString ( main->PrivateKeyAgainPasswordEdit->password() );
|
|
|
|
|
privatekeypassword = main->PrivateKeyAgainPasswordEdit->password();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -509,8 +509,8 @@ void ImportCertificateDialog::accept()
|
|
|
|
|
ImportProcess->writeToStdin ( main->ImportPasswordEdit->text() +"\n");
|
|
|
|
|
if (main->UsePrivateKeyPasswordCheckBox->isChecked() )
|
|
|
|
|
{
|
|
|
|
|
ImportProcess->writeToStdin ( TQString ( main->PrivateKeyPasswordEdit->password() ) + "\n" );
|
|
|
|
|
ImportProcess->writeToStdin ( TQString ( main->PrivateKeyPasswordEdit->password() ) + "\n" );
|
|
|
|
|
ImportProcess->writeToStdin ( main->PrivateKeyPasswordEdit->password() + "\n" );
|
|
|
|
|
ImportProcess->writeToStdin ( main->PrivateKeyPasswordEdit->password() + "\n" );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1054,7 +1054,7 @@ void ImportCertificateDialog::readFromStdout_import()
|
|
|
|
|
{
|
|
|
|
|
if ( GlobalConfig->KvpncDebugLevel > 0 )
|
|
|
|
|
GlobalConfig->appendLogEntry ( i18n ( "Certificate import: %1 was requested, send it..." ).arg ( i18n ( "certificate password" ) ),GlobalConfig->debug );
|
|
|
|
|
ImportProcess->writeToStdin ( TQString ( main->PrivateKeyPasswordEdit->password() ) + "\n" );
|
|
|
|
|
ImportProcess->writeToStdin ( main->PrivateKeyPasswordEdit->password() + "\n" );
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if ( line.find ( "Success: certificate imported from path:", 0, FALSE ) > -1 )
|
|
|
|
|