certmanager/lib

#include <cryptplugwrapper.h>

Public Types

enum  IniStatus {
  IniStatus_undef = 0 , IniStatus_Ok = 1 , IniStatus_NoLibName = 2 , IniStatus_LoadError = 0x1000 ,
  IniStatus_InitError = 0x2000
}
enum  {
  SigStatus_UNKNOWN = 0x0000 , SigStatus_VALID = SigStat_VALID , SigStatus_GREEN = SigStat_GREEN , SigStatus_RED = SigStat_RED ,
  SigStatus_KEY_REVOKED = SigStat_KEY_REVOKED , SigStatus_KEY_EXPIRED = SigStat_KEY_EXPIRED , SigStatus_SIG_EXPIRED = SigStat_SIG_EXPIRED , SigStatus_KEY_MISSING = SigStat_KEY_MISSING ,
  SigStatus_CRL_MISSING = SigStat_CRL_MISSING , SigStatus_CRL_TOO_OLD = SigStat_CRL_TOO_OLD , SigStatus_BAD_POLICY = SigStat_BAD_POLICY , SigStatus_SYS_ERROR = SigStat_SYS_ERROR ,
  SigStatus_NUMERICAL_CODE = 0x8000
}
enum  { CerStatus_EXPIRES_NEVER = CRYPTPLUG_CERT_DOES_NEVER_EXPIRE }
typedef unsigned long SigStatusFlags

Public Member Functions

 CryptPlugWrapper (const TQString &name=TQString(), const TQString &libName=TQString(), const TQString &update=TQString(), bool active=false)
 ~CryptPlugWrapper ()
TQString protocol () const
TQString name () const
void setActive (bool active)
bool active () const
bool setLibName (const TQString &libName)
TQString libName () const
void setDisplayName (const TQString &name)
TQString displayName () const
void deinitialize ()
IniStatus iniStatus (TQString *errorMsg) const
bool hasFeature (::Feature)
void freeSignatureMetaData (CryptPlug::SignatureMetaData *)
bool checkMessageSignature (char **cleartext, const char *signaturetext, bool signatureIsBinary, int signatureLen, CryptPlug::SignatureMetaData *sigmeta)
bool decryptMessage (const char *ciphertext, bool cipherIsBinary, int cipherLen, char **cleartext, const char *certificate, int *errId, char **errTxt)
bool decryptAndCheckMessage (const char *ciphertext, bool cipherIsBinary, int cipherLen, char **cleartext, const char *certificate, bool *signatureFound, CryptPlug::SignatureMetaData *sigmeta, int *errId, char **errTxt)
Kleo::KeyListJobkeyListJob (bool remote=false, bool includeSigs=false, bool validate=true) const
Kleo::EncryptJobencryptJob (bool armor=false, bool textmode=false) const
Kleo::DecryptJobdecryptJob () const
Kleo::SignJobsignJob (bool armor=false, bool textMode=false) const
Kleo::VerifyDetachedJobverifyDetachedJob (bool textmode=false) const
Kleo::VerifyOpaqueJobverifyOpaqueJob (bool textmode=false) const
Kleo::KeyGenerationJobkeyGenerationJob () const
Kleo::ImportJobimportJob () const
Kleo::ExportJobpublicKeyExportJob (bool armor=false) const
Kleo::ExportJobsecretKeyExportJob (bool armor=false, const TQString &charset=TQString()) const
Kleo::DownloadJobdownloadJob (bool armor=false) const
Kleo::DeleteJobdeleteJob () const
Kleo::SignEncryptJobsignEncryptJob (bool armor=false, bool textmode=false) const
Kleo::DecryptVerifyJobdecryptVerifyJob (bool textmode=false) const
Kleo::RefreshKeysJobrefreshKeysJob () const
Kleo::SpecialJobspecialJob (const char *, const TQStringVariantMap &) const
GpgME::ImportResult importCertificate (const char *data, size_t length)
CryptPlug * cryptPlug () const

Static Public Member Functions

static TQString errorIdToText (int errId, bool &isPassphraseError)

Detailed Description

This class provides C++ access to the CRYPTPLUG API.

Definition at line 453 of file cryptplugwrapper.h.

Member Typedef Documentation

◆ SigStatusFlags

typedef unsigned long CryptPlugWrapper::SigStatusFlags

Definition at line 517 of file cryptplugwrapper.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Definition at line 520 of file cryptplugwrapper.h.

Member Function Documentation

◆ cryptPlug()

CryptPlug * CryptPlugWrapper::cryptPlug ( ) const
inline

Definition at line 820 of file cryptplugwrapper.h.

◆ decryptJob()

Kleo::DecryptJob * CryptPlugWrapper::decryptJob ( ) const

Definition at line 698 of file cryptplugwrapper.cpp.

◆ decryptVerifyJob()

Kleo::DecryptVerifyJob * CryptPlugWrapper::decryptVerifyJob ( bool textmode = false) const

Definition at line 839 of file cryptplugwrapper.cpp.

◆ deleteJob()

Kleo::DeleteJob * CryptPlugWrapper::deleteJob ( ) const

Definition at line 814 of file cryptplugwrapper.cpp.

◆ downloadJob()

Kleo::DownloadJob * CryptPlugWrapper::downloadJob ( bool armor = false) const

Definition at line 799 of file cryptplugwrapper.cpp.

◆ encryptJob()

Kleo::EncryptJob * CryptPlugWrapper::encryptJob ( bool armor = false,
bool textmode = false ) const

Definition at line 685 of file cryptplugwrapper.cpp.

◆ errorIdToText()

TQString CryptPlugWrapper::errorIdToText ( int errId,
bool & isPassphraseError )
static

Definition at line 408 of file cryptplugwrapper.cpp.

◆ freeSignatureMetaData()

void CryptPlugWrapper::freeSignatureMetaData ( CryptPlug::SignatureMetaData * sigmeta)

Definition at line 630 of file cryptplugwrapper.cpp.

◆ importCertificate()

GpgME::ImportResult CryptPlugWrapper::importCertificate ( const char * data,
size_t length )

Definition at line 654 of file cryptplugwrapper.cpp.

◆ importJob()

Kleo::ImportJob * CryptPlugWrapper::importJob ( ) const

Definition at line 760 of file cryptplugwrapper.cpp.

◆ keyGenerationJob()

Kleo::KeyGenerationJob * CryptPlugWrapper::keyGenerationJob ( ) const

Definition at line 749 of file cryptplugwrapper.cpp.

◆ keyListJob()

Kleo::KeyListJob * CryptPlugWrapper::keyListJob ( bool remote = false,
bool includeSigs = false,
bool validate = true ) const

Definition at line 663 of file cryptplugwrapper.cpp.

◆ name()

TQString CryptPlugWrapper::name ( ) const
inline

Definition at line 566 of file cryptplugwrapper.h.

◆ protocol()

TQString CryptPlugWrapper::protocol ( ) const

Definition at line 469 of file cryptplugwrapper.cpp.

◆ publicKeyExportJob()

Kleo::ExportJob * CryptPlugWrapper::publicKeyExportJob ( bool armor = false) const

Definition at line 771 of file cryptplugwrapper.cpp.

◆ refreshKeysJob()

Kleo::RefreshKeysJob * CryptPlugWrapper::refreshKeysJob ( ) const

Definition at line 791 of file cryptplugwrapper.cpp.

◆ secretKeyExportJob()

Kleo::ExportJob * CryptPlugWrapper::secretKeyExportJob ( bool armor = false,
const TQString & charset = TQString() ) const

Definition at line 783 of file cryptplugwrapper.cpp.

◆ signEncryptJob()

Kleo::SignEncryptJob * CryptPlugWrapper::signEncryptJob ( bool armor = false,
bool textmode = false ) const

Definition at line 825 of file cryptplugwrapper.cpp.

◆ signJob()

Kleo::SignJob * CryptPlugWrapper::signJob ( bool armor = false,
bool textMode = false ) const

Definition at line 709 of file cryptplugwrapper.cpp.

◆ specialJob()

Kleo::SpecialJob * CryptPlugWrapper::specialJob ( const char * ,
const TQStringVariantMap &  ) const
inline

Definition at line 816 of file cryptplugwrapper.h.

◆ verifyDetachedJob()

Kleo::VerifyDetachedJob * CryptPlugWrapper::verifyDetachedJob ( bool textmode = false) const

Definition at line 723 of file cryptplugwrapper.cpp.

◆ verifyOpaqueJob()

Kleo::VerifyOpaqueJob * CryptPlugWrapper::verifyOpaqueJob ( bool textmode = false) const

Definition at line 736 of file cryptplugwrapper.cpp.


The documentation for this class was generated from the following files: