|
|
@ -552,8 +552,8 @@ bool MessageComposer::encryptWithChiasmus( const Kleo::CryptoBackend::Protocol *
|
|
|
|
const TQByteArray& body,
|
|
|
|
const TQByteArray& body,
|
|
|
|
TQByteArray& resultData )
|
|
|
|
TQByteArray& resultData )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::auto_ptr<Kleo::SpecialJob> job( chiasmus->specialJob( "x-encrypt", TQStringVariantMap() ) );
|
|
|
|
std::unique_ptr<Kleo::SpecialJob> job( chiasmus->specialJob( "x-encrypt", TQStringVariantMap() ) );
|
|
|
|
if ( !job.get() ) {
|
|
|
|
if ( !job ) {
|
|
|
|
const TQString msg = i18n( "Chiasmus backend does not offer the "
|
|
|
|
const TQString msg = i18n( "Chiasmus backend does not offer the "
|
|
|
|
"\"x-encrypt\" function. Please report this bug." );
|
|
|
|
"\"x-encrypt\" function. Please report this bug." );
|
|
|
|
KMessageBox::error( mComposeWin, msg, i18n( "Chiasmus Backend Error" ) );
|
|
|
|
KMessageBox::error( mComposeWin, msg, i18n( "Chiasmus Backend Error" ) );
|
|
|
@ -2162,10 +2162,10 @@ void MessageComposer::pgpSignedMsg( const TQByteArray& cText, Kleo::CryptoMessag
|
|
|
|
= isSMIME( format ) ? cpf->smime() : cpf->openpgp() ;
|
|
|
|
= isSMIME( format ) ? cpf->smime() : cpf->openpgp() ;
|
|
|
|
assert( proto ); /// hmmm.....?
|
|
|
|
assert( proto ); /// hmmm.....?
|
|
|
|
|
|
|
|
|
|
|
|
std::auto_ptr<Kleo::SignJob> job( proto->signJob( armor( format ),
|
|
|
|
std::unique_ptr<Kleo::SignJob> job( proto->signJob( armor( format ),
|
|
|
|
textMode( format ) ) );
|
|
|
|
textMode( format ) ) );
|
|
|
|
|
|
|
|
|
|
|
|
if ( !job.get() ) {
|
|
|
|
if ( !job ) {
|
|
|
|
KMessageBox::sorry( mComposeWin,
|
|
|
|
KMessageBox::sorry( mComposeWin,
|
|
|
|
i18n("This message could not be signed, "
|
|
|
|
i18n("This message could not be signed, "
|
|
|
|
"since the chosen backend does not seem to support "
|
|
|
|
"since the chosen backend does not seem to support "
|
|
|
@ -2218,9 +2218,9 @@ Kpgp::Result MessageComposer::pgpEncryptedMsg( TQByteArray & encryptedBody,
|
|
|
|
= isSMIME( format ) ? cpf->smime() : cpf->openpgp() ;
|
|
|
|
= isSMIME( format ) ? cpf->smime() : cpf->openpgp() ;
|
|
|
|
assert( proto ); // hmmmm....?
|
|
|
|
assert( proto ); // hmmmm....?
|
|
|
|
|
|
|
|
|
|
|
|
std::auto_ptr<Kleo::EncryptJob> job( proto->encryptJob( armor( format ),
|
|
|
|
std::unique_ptr<Kleo::EncryptJob> job( proto->encryptJob( armor( format ),
|
|
|
|
textMode( format ) ) );
|
|
|
|
textMode( format ) ) );
|
|
|
|
if ( !job.get() ) {
|
|
|
|
if ( !job ) {
|
|
|
|
KMessageBox::sorry( mComposeWin,
|
|
|
|
KMessageBox::sorry( mComposeWin,
|
|
|
|
i18n("This message could not be encrypted, "
|
|
|
|
i18n("This message could not be encrypted, "
|
|
|
|
"since the chosen backend does not seem to support "
|
|
|
|
"since the chosen backend does not seem to support "
|
|
|
@ -2266,9 +2266,9 @@ Kpgp::Result MessageComposer::pgpSignedAndEncryptedMsg( TQByteArray & encryptedB
|
|
|
|
= isSMIME( format ) ? cpf->smime() : cpf->openpgp() ;
|
|
|
|
= isSMIME( format ) ? cpf->smime() : cpf->openpgp() ;
|
|
|
|
assert( proto ); // hmmmm....?
|
|
|
|
assert( proto ); // hmmmm....?
|
|
|
|
|
|
|
|
|
|
|
|
std::auto_ptr<Kleo::SignEncryptJob> job( proto->signEncryptJob( armor( format ),
|
|
|
|
std::unique_ptr<Kleo::SignEncryptJob> job( proto->signEncryptJob( armor( format ),
|
|
|
|
textMode( format ) ) );
|
|
|
|
textMode( format ) ) );
|
|
|
|
if ( !job.get() ) {
|
|
|
|
if ( !job ) {
|
|
|
|
KMessageBox::sorry( mComposeWin,
|
|
|
|
KMessageBox::sorry( mComposeWin,
|
|
|
|
i18n("This message could not be signed and encrypted, "
|
|
|
|
i18n("This message could not be signed and encrypted, "
|
|
|
|
"since the chosen backend does not seem to support "
|
|
|
|
"since the chosen backend does not seem to support "
|
|
|
|