|
|
|
@ -45,10 +45,10 @@ public:
|
|
|
|
|
|
|
|
|
|
/** Encrypts and signs the message with the given keys. */
|
|
|
|
|
virtual int encsign( Block& , const KeyIDList& ,
|
|
|
|
|
const TQString& = 0) { return OK; }
|
|
|
|
|
const TQString& = TQString::null) { return OK; }
|
|
|
|
|
|
|
|
|
|
/** Decrypts the message. */
|
|
|
|
|
virtual int decrypt( Block& , const TQString& = 0) { return OK; }
|
|
|
|
|
virtual int decrypt( Block& , const TQString& = TQString::null) { return OK; }
|
|
|
|
|
|
|
|
|
|
/** Verifies the message. */
|
|
|
|
|
virtual int verify( Block& block ) { return decrypt( block, 0 ); }
|
|
|
|
@ -86,9 +86,9 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
virtual int run( const char *cmd, const TQString& passphrase = 0,
|
|
|
|
|
virtual int run( const char *cmd, const TQString &passphrase = TQString::null,
|
|
|
|
|
bool onlyReadFromPGP = false );
|
|
|
|
|
virtual int runGpg( const char *cmd, const TQString& passphrase = 0,
|
|
|
|
|
virtual int runGpg( const char *cmd, const TQString &passphrase = TQString::null,
|
|
|
|
|
bool onlyReadFromGnuPG = false );
|
|
|
|
|
virtual void clear();
|
|
|
|
|
|
|
|
|
@ -117,8 +117,8 @@ public:
|
|
|
|
|
virtual int encrypt( Block& block, const KeyIDList& recipients );
|
|
|
|
|
virtual int clearsign( Block& block, const TQString &passphrase );
|
|
|
|
|
virtual int encsign( Block& block, const KeyIDList& recipients,
|
|
|
|
|
const TQString& passphrase = 0 );
|
|
|
|
|
virtual int decrypt( Block& block, const TQString& passphrase = 0 );
|
|
|
|
|
const TQString &passphrase = TQString::null );
|
|
|
|
|
virtual int decrypt( Block& block, const TQString &passphrase = TQString::null );
|
|
|
|
|
virtual int verify( Block& block ) { return decrypt( block, 0 ); }
|
|
|
|
|
|
|
|
|
|
virtual Key* readPublicKey( const KeyID& keyID,
|
|
|
|
@ -149,8 +149,8 @@ public:
|
|
|
|
|
virtual int encrypt( Block& block, const KeyIDList& recipients );
|
|
|
|
|
virtual int clearsign( Block& block, const TQString &passphrase );
|
|
|
|
|
virtual int encsign( Block& block, const KeyIDList& recipients,
|
|
|
|
|
const TQString& passphrase = 0 );
|
|
|
|
|
virtual int decrypt( Block& block, const TQString& passphrase = 0 );
|
|
|
|
|
const TQString &passphrase = TQString::null );
|
|
|
|
|
virtual int decrypt( Block& block, const TQString &passphrase = TQString::null );
|
|
|
|
|
virtual int verify( Block& block ) { return decrypt( block, 0 ); }
|
|
|
|
|
|
|
|
|
|
virtual Key* readPublicKey( const KeyID& keyID,
|
|
|
|
@ -177,8 +177,8 @@ public:
|
|
|
|
|
virtual int encrypt( Block& block, const KeyIDList& recipients );
|
|
|
|
|
virtual int clearsign( Block& block, const TQString &passphrase );
|
|
|
|
|
virtual int encsign( Block& block, const KeyIDList& recipients,
|
|
|
|
|
const TQString& passphrase = 0 );
|
|
|
|
|
virtual int decrypt( Block& block, const TQString& passphrase = 0 );
|
|
|
|
|
const TQString &passphrase = TQString::null );
|
|
|
|
|
virtual int decrypt( Block& block, const TQString &passphrase = TQString::null );
|
|
|
|
|
virtual int verify( Block& block ) { return decrypt( block, 0 ); }
|
|
|
|
|
|
|
|
|
|
virtual Key* readPublicKey( const KeyID& keyID,
|
|
|
|
@ -204,7 +204,7 @@ public:
|
|
|
|
|
Base6();
|
|
|
|
|
virtual ~Base6();
|
|
|
|
|
|
|
|
|
|
virtual int decrypt( Block& block, const TQString& passphrase = 0 );
|
|
|
|
|
virtual int decrypt( Block& block, const TQString &passphrase = TQString::null );
|
|
|
|
|
virtual int verify( Block& block ) { return decrypt( block, 0 ); }
|
|
|
|
|
|
|
|
|
|
virtual Key* readPublicKey( const KeyID& keyID,
|
|
|
|
|