Adapted to new KPasswordEdit::password() signature. This relates to bug 2961.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/1/head
Michele Calgaro 6 years ago
parent d1ba7a42bc
commit 261802a2b1
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -301,8 +301,8 @@ void Manager::load(const TQString &filename)
pwd_entry:
int saveToWallet = 1;
TQCString p_pass(KFTPAPI::getInstance()->walletConnection()->getPassword("bookmarkDecryptPwd").ascii());
if (TQString(p_pass).isNull()) {
TQString p_pass(KFTPAPI::getInstance()->walletConnection()->getPassword("bookmarkDecryptPwd"));
if (p_pass.isNull()) {
// Ask the user for a password
int ret = KPasswordDialog::getPassword(p_pass, i18n("This bookmark file is encrypted. Please enter key for decryption."), &saveToWallet);
@ -717,7 +717,7 @@ void Manager::setupClient(Site *site, KFTPEngine::Thread *client)
// Should we use a X509 certificate ?
if (site->getIntProperty("use_cert") && site->getProperty("protocol") == "ftp") {
// Ask the user for the decryption password
TQCString certPass;
TQString certPass;
KPasswordDialog::getPassword(certPass, i18n("Please provide your X509 certificate decryption password."));
static_cast<KFTPEngine::FtpSocket*>(client->socket())->setSslClientCertificate(KSSLPKCS12::loadCertFile(site->getProperty("tls_cert_path"), certPass));

@ -134,7 +134,7 @@ private:
TQCache<Site> m_siteCache;
TQDomDocument m_document;
TQCString m_decryptKey;
TQString m_decryptKey;
TQString m_filename;
TQDomNode findSiteElementByUrl(const KURL &url, TQDomNode parent = TQDomNode());

@ -384,7 +384,7 @@ void Session::slotClientEngineEvent(KFTPEngine::Event *event)
}
case Event::EventPubkeyPassword: {
// A public-key authentication password was requested
TQCString pass;
TQString pass;
int ret = KPasswordDialog::getPassword(pass, i18n("Please provide your private key decryption password."));
if (ret == KPasswordDialog::Accepted) {

@ -367,7 +367,7 @@ void QuickConnectDialog::setupClient(KFTPEngine::Thread *client)
// Should we use a X509 certificate ?
if (m_protocolAdvancedDialog->isCertChecked() && m_layout->protocolBox->currentItem() == SP_FTP) {
// Ask the user for the decryption password
TQCString certPass;
TQString certPass;
KPasswordDialog::getPassword(certPass, i18n("Please provide your X509 certificate decryption password."));
static_cast<KFTPEngine::FtpSocket*>(client->socket())->setSslClientCertificate(KSSLPKCS12::loadCertFile(m_protocolAdvancedDialog->getCertPath(), certPass));

Loading…
Cancel
Save