diff options
author | Saturneric <[email protected]> | 2021-11-28 13:38:59 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-11-28 13:38:59 +0000 |
commit | 9c1446c97ffff92a6c90442f9148239f24ac9a54 (patch) | |
tree | 73689befad5467dfa02ea0fe8934c52c99c8a874 /src/gpg/function/GpgFileOpera.h | |
parent | Solve key generation and related update issues. (diff) | |
download | GpgFrontend-9c1446c97ffff92a6c90442f9148239f24ac9a54.tar.gz GpgFrontend-9c1446c97ffff92a6c90442f9148239f24ac9a54.zip |
Fix some known issues in basic operations and file operations.
Diffstat (limited to '')
-rw-r--r-- | src/gpg/function/GpgFileOpera.h | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/src/gpg/function/GpgFileOpera.h b/src/gpg/function/GpgFileOpera.h index dece2e52..ff57b2c0 100644 --- a/src/gpg/function/GpgFileOpera.h +++ b/src/gpg/function/GpgFileOpera.h @@ -33,26 +33,23 @@ namespace GpgFrontend { class GpgFileOpera : public SingletonFunctionObject<GpgFileOpera> { public: - GpgError EncryptFile(KeyArgsList&& keys, - const std::string& path, - GpgEncrResult& result); + static GpgError EncryptFile(KeyArgsList&& keys, const std::string& path, + GpgEncrResult& result); - GpgError DecryptFile(const std::string& path, GpgDecrResult& result); + static GpgError DecryptFile(const std::string& path, GpgDecrResult& result); - GpgError SignFile(KeyArgsList&& keys, - const std::string& path, - GpgSignResult& result); + static GpgError SignFile(KeyArgsList&& keys, const std::string& path, + GpgSignResult& result); - GpgError VerifyFile(const std::string& path, GpgVerifyResult& result); + static GpgError VerifyFile(const std::string& path, GpgVerifyResult& result); - GpgError EncryptSignFile(KeyArgsList&& keys, - const std::string& path, - GpgEncrResult& encr_res, - GpgSignResult& sign_res); + static GpgError EncryptSignFile(KeyArgsList&& keys, const std::string& path, + GpgEncrResult& encr_res, + GpgSignResult& sign_res); - GpgError DecryptVerifyFile(const std::string& path, - GpgDecrResult& decr_res, - GpgVerifyResult& verify_res); + static GpgError DecryptVerifyFile(const std::string& path, + GpgDecrResult& decr_res, + GpgVerifyResult& verify_res); }; } // namespace GpgFrontend |