@ -149,7 +149,7 @@ void KgpgInterface::readencprocess(KProcIO *p)
if ( required . find ( " openfile.overwrite.okay " ) ! = - 1 )
p - > writeStdin ( TQString ( " Yes " ) ) ;
else if ( ( required . find ( " passphrase.enter " ) ! = - 1 ) ) {
TQ C String passphrase ;
TQ String passphrase ;
int code = KPasswordDialog : : getNewPassword ( passphrase , i18n ( " Enter passphrase for your file (symmetrical encryption): " ) ) ;
if ( code ! = TQDialog : : Accepted ) {
p - > deleteLater ( ) ;
@ -226,7 +226,7 @@ void KgpgInterface::readdecprocess(KProcIO *p)
if ( userIDs . isEmpty ( ) )
userIDs = i18n ( " [No user id found] " ) ;
userIDs . replace ( TQRegExp ( " < " ) , " < " ) ;
TQ C String passphrase ;
TQ String passphrase ;
TQString passdlgmessage ;
if ( anonymous )
passdlgmessage = i18n ( " <b>No user id found</b>. Trying all secret keys.<br> " ) ;
@ -313,7 +313,7 @@ void KgpgInterface::txtreadencprocess(KProcIO *p)
else
if ( ( required . find ( " passphrase.enter " ) ! = - 1 ) )
{
TQ C String passphrase ;
TQ String passphrase ;
TQString passdlgmessage = i18n ( " Enter passphrase (symmetrical encryption) " ) ;
int code = KPasswordDialog : : getNewPassword ( passphrase , passdlgmessage ) ;
if ( code ! = TQDialog : : Accepted )
@ -409,7 +409,7 @@ void KgpgInterface::getCmdOutput(TDEProcess *p, char *data, int )
{
if ( userIDs . isEmpty ( ) )
userIDs = i18n ( " [No user id found] " ) ;
TQ C String passphrase ;
TQ String passphrase ;
TQString passdlgmessage ;
if ( anonymous )
passdlgmessage = i18n ( " <b>No user id found</b>. Trying all secret keys.<br> " ) ;
@ -424,7 +424,8 @@ void KgpgInterface::getCmdOutput(TDEProcess *p, char *data, int )
return ;
}
passphrase . append ( " \n " ) ;
p - > writeStdin ( passphrase , passphrase . length ( ) ) ;
TQCString passphrase_local = passphrase . local8Bit ( ) ;
p - > writeStdin ( passphrase_local , passphrase_local . length ( ) ) ;
userIDs = TQString ( ) ;
if ( step > 1 ) step - - ;
else step = 3 ;
@ -527,7 +528,7 @@ void KgpgInterface::txtsignprocess(KProcIO *p)
else step = 3 ;
if ( userIDs . isEmpty ( ) )
userIDs = i18n ( " [No user id found] " ) ;
TQ C String passphrase ;
TQ String passphrase ;
TQString passdlgmessage ;
if ( step < 3 )
passdlgmessage = i18n ( " <b>Bad passphrase</b>. You have %1 tries left.<br> " ) . arg ( step ) ;
@ -776,7 +777,7 @@ void KgpgInterface::readsignprocess(KProcIO *p)
else if ( ( required . find ( " passphrase.enter " ) ! = - 1 ) ) {
if ( userIDs . isEmpty ( ) )
userIDs = i18n ( " [No user id found] " ) ;
TQ C String passphrase ;
TQ String passphrase ;
TQString passdlgmessage ;
if ( step < 3 )
passdlgmessage = i18n ( " <b>Bad passphrase</b>. you have %1 tries left.<br> " ) . arg ( step ) ;
@ -958,7 +959,7 @@ void KgpgInterface::sigprocess(KProcIO *p)
}
if ( required . find ( " passphrase.enter " ) ! = - 1 ) {
TQ C String signpass ;
TQ String signpass ;
// kdDebug(2100) << k_funcinfo << "passphrase.enter" << endl;
TQApplication : : restoreOverrideCursor ( ) ;
int code = KPasswordDialog : : getPassword ( signpass , i18n ( " <qt>%1 Enter passphrase for <b>%2</b>:</qt> " )
@ -1040,7 +1041,7 @@ void KgpgInterface::sigprocess(KProcIO *p)
if ( required . find ( " passphrase.enter " ) ! = - 1 ) {
TQApplication : : restoreOverrideCursor ( ) ;
TQ C String signpass ;
TQ String signpass ;
// kdDebug(2100) << k_funcinfo << "passphrase.enter" << endl;
int code = KPasswordDialog : : getPassword ( signpass , i18n ( " <qt>%1 Enter passphrase for <b>%2</b>:</qt> " )
. arg ( errMessage ) . arg ( userIDs ) ) ;
@ -1269,7 +1270,7 @@ void KgpgInterface::expprocess(KProcIO *p)
}
if ( required . find ( " passphrase.enter " ) ! = - 1 ) {
TQ C String signpass ;
TQ String signpass ;
int code = KPasswordDialog : : getPassword ( signpass , i18n ( " <qt>Enter passphrase for <b>%1</b>:</qt> " ) . arg ( userIDs ) ) ;
if ( code ! = TQDialog : : Accepted ) {
expSuccess = 3 ; ///// aborted by user mode
@ -1438,7 +1439,7 @@ void KgpgInterface::passprocess(KProcIO *p)
userIDs . replace ( TQRegExp ( " < " ) , " < " ) ;
if ( step = = 1 ) {
TQ C String passphrase ;
TQ String passphrase ;
int code = KPasswordDialog : : getPassword ( passphrase , i18n ( " <qt>%1 Enter passphrase for <b>%2</b></qt> " )
. arg ( message ) . arg ( userIDs ) ) ;
if ( code ! = TQDialog : : Accepted ) {
@ -1453,7 +1454,7 @@ void KgpgInterface::passprocess(KProcIO *p)
}
if ( step = = 3 ) {
TQ C String passphrase ;
TQ String passphrase ;
int code = KPasswordDialog : : getNewPassword ( passphrase , i18n ( " <qt>Enter new passphrase for <b>%1</b><br>If you forget this passphrase, all your encrypted files and messages will be lost !<br></qt> " ) . arg ( userIDs ) ) ;
if ( code ! = TQDialog : : Accepted ) {
step = 4 ;
@ -1689,7 +1690,7 @@ void KgpgInterface::adduidprocess(KProcIO *p)
}
if ( required . find ( " passphrase.enter " ) ! = - 1 ) {
TQ C String delpass ;
TQ String delpass ;
int code = KPasswordDialog : : getPassword ( delpass , i18n ( " <qt>Enter passphrase for <b>%1</b>:</qt> " )
. arg ( userIDs ) ) ;
if ( code ! = TQDialog : : Accepted ) {
@ -1819,7 +1820,7 @@ void KgpgInterface::delphotoprocess(KProcIO *p)
}
if ( required . find ( " passphrase.enter " ) ! = - 1 ) {
TQ C String delpass ;
TQ String delpass ;
int code = KPasswordDialog : : getPassword ( delpass , i18n ( " <qt>Enter passphrase for <b>%1</b>:</qt> " ) . arg ( userIDs ) ) ;
if ( code ! = TQDialog : : Accepted ) {
//deleteSuccess=false;
@ -1897,7 +1898,7 @@ void KgpgInterface::addphotoprocess(KProcIO *p)
}
if ( required . find ( " passphrase.enter " ) ! = - 1 ) {
TQ C String delpass ;
TQ String delpass ;
int code = KPasswordDialog : : getPassword ( delpass , i18n ( " <qt>Enter passphrase for <b>%1</b>:</qt> " ) . arg ( userIDs ) ) ;
if ( code ! = TQDialog : : Accepted ) {
//deleteSuccess=false;
@ -1991,7 +1992,7 @@ void KgpgInterface::revokeprocess(KProcIO *p)
if ( required . find ( " passphrase.enter " ) ! = - 1 ) {
// kdDebug(2100) << k_funcinfo << " passphrase.enter " << endl;
TQ C String signpass ;
TQ String signpass ;
int code = KPasswordDialog : : getPassword ( signpass , i18n ( " <qt>Enter passphrase for <b>%1</b>:</qt> " ) . arg ( userIDs ) ) ;
if ( code ! = TQDialog : : Accepted ) {
expSuccess = 3 ; ///// aborted by user mode