diff options
Diffstat (limited to '')
-rw-r--r-- | src/gpg/function/GpgKeyOpera.h | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/src/gpg/function/GpgKeyOpera.h b/src/gpg/function/GpgKeyOpera.h index a635084d..36864cc7 100644 --- a/src/gpg/function/GpgKeyOpera.h +++ b/src/gpg/function/GpgKeyOpera.h @@ -32,23 +32,25 @@ namespace GpgFrontend { class GenKeyInfo; class GpgKeyOpera : public SingletonFunctionObject<GpgKeyOpera> { -public: - void DeleteKeys(KeyIdArgsListPtr uid_list); + public: + void DeleteKeys(KeyIdArgsListPtr key_ids); - void SetExpire(const GpgKey &key, std::unique_ptr<GpgSubKey> &subkey, - std::unique_ptr<boost::gregorian::date> &expires); + void SetExpire(const GpgKey& key, + const SubkeyId& subkey_id, + std::unique_ptr<boost::gregorian::date>& expires); - void GenerateRevokeCert(const GpgKey &key, - const std::string &output_file_name); + void GenerateRevokeCert(const GpgKey& key, + const std::string& output_file_name); - GpgFrontend::GpgError GenerateKey(std::unique_ptr<GenKeyInfo> params); + GpgFrontend::GpgError GenerateKey(const std::unique_ptr<GenKeyInfo>& params); - GpgFrontend::GpgError GenerateSubkey(const GpgKey &key, - std::unique_ptr<GenKeyInfo> params); + GpgFrontend::GpgError GenerateSubkey( + const GpgKey& key, + const std::unique_ptr<GenKeyInfo>& params); -private: - GpgContext &ctx = GpgContext::GetInstance(); + private: + GpgContext& ctx = GpgContext::GetInstance(); }; -} // namespace GpgFrontend +} // namespace GpgFrontend -#endif // _GPGKEYOPERA_H
\ No newline at end of file +#endif // _GPGKEYOPERA_H
\ No newline at end of file |