GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgFrontend::GpgContext::Impl Class Reference
Collaboration diagram for GpgFrontend::GpgContext::Impl:
Collaboration graph

Public Member Functions

 Impl (GpgContext *parent, const GpgContextInitArgs &args)
 
auto BinaryContext () const -> gpgme_ctx_t
 
auto DefaultContext () const -> gpgme_ctx_t
 
auto Good () const -> bool
 
auto SetPassphraseCb (const gpgme_ctx_t &ctx, gpgme_passphrase_cb_t cb) -> bool
 

Static Public Member Functions

static auto TestPassphraseCb (void *opaque, const char *uid_hint, const char *passphrase_info, int last_was_bad, int fd) -> gpgme_error_t
 
static auto CustomPassphraseCb (void *hook, const char *uid_hint, const char *passphrase_info, int prev_was_bad, int fd) -> gpgme_error_t
 
static auto TestStatusCb (void *hook, const char *keyword, const char *args) -> gpgme_error_t
 

Private Member Functions

auto common_ctx_initialize (const gpgme_ctx_t &ctx, const GpgContextInitArgs &args) -> bool
 
auto binary_ctx_initialize (const GpgContextInitArgs &args) -> bool
 
auto default_ctx_initialize (const GpgContextInitArgs &args) -> bool
 

Static Private Member Functions

static auto set_ctx_key_list_mode (const gpgme_ctx_t &ctx) -> bool
 
static auto set_ctx_openpgp_engine_info (gpgme_ctx_t ctx) -> bool
 

Private Attributes

GpgContextparent_
 
GpgContextInitArgs args_ {}
 
gpgme_ctx_t ctx_ref_ = nullptr
 
gpgme_ctx_t binary_ctx_ref_ = nullptr
 
bool good_ = true
 
std::mutex ctx_ref_lock_
 
std::mutex binary_ctx_ref_lock_
 

Constructor & Destructor Documentation

◆ Impl()

GpgFrontend::GpgContext::Impl::Impl ( GpgContext parent,
const GpgContextInitArgs args 
)
inline

Constructor Set up gpgme-context, set paths to app-run path


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