29 #ifndef _GPGKEYOPERA_H
30 #define _GPGKEYOPERA_H
32 #include "core/GpgConstants.h"
33 #include "core/GpgContext.h"
34 #include "core/GpgModel.h"
63 void DeleteKeys(KeyIdArgsListPtr key_ids);
70 void DeleteKey(
const KeyId& key_id);
80 GpgError SetExpire(
const GpgKey& key,
const SubkeyId& subkey_fpr,
81 std::unique_ptr<boost::posix_time::ptime>& expires);
89 static void GenerateRevokeCert(
const GpgKey& key,
90 const std::string& output_file_name);
98 GpgFrontend::GpgError ModifyPassword(
const GpgKey& key);
107 GpgFrontend::GpgError ModifyTOFUPolicy(
const GpgKey& key,
108 gpgme_tofu_policy_t tofu_policy);
116 GpgFrontend::GpgError GenerateKey(
const std::unique_ptr<GenKeyInfo>& params,
117 GpgGenKeyResult& result);
126 GpgFrontend::GpgError GenerateSubkey(
127 const GpgKey& key,
const std::unique_ptr<GenKeyInfo>& params);
Definition: GpgContext.h:64
Definition: GpgKeyOpera.h:48
Definition: GpgFunctionObject.h:148
static int GetDefaultChannel()
Get the Default Channel object.
Definition: GpgFunctionObject.h:232
static GpgContext & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:170
int GetChannel() const
Get the Channel object.
Definition: GpgFunctionObject.h:239
Definition: CoreCommonUtil.cpp:31