diff options
author | saturneric <[email protected]> | 2023-12-23 17:36:40 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-23 17:36:40 +0000 |
commit | 956c5ed3a8931bcbfa07fbe2b1af8090188b822b (patch) | |
tree | 18ff59a410e2c87d53a05e5483549fb977ec3ddd /src/core/function/gpg/GpgFileOpera.h | |
parent | fix: solve all issues of test cases on macos m1 (diff) | |
download | GpgFrontend-956c5ed3a8931bcbfa07fbe2b1af8090188b822b.tar.gz GpgFrontend-956c5ed3a8931bcbfa07fbe2b1af8090188b822b.zip |
feat: improve core interfaces of encrypt and decrypt
Diffstat (limited to 'src/core/function/gpg/GpgFileOpera.h')
-rw-r--r-- | src/core/function/gpg/GpgFileOpera.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/core/function/gpg/GpgFileOpera.h b/src/core/function/gpg/GpgFileOpera.h index 569ea51a..0f278b1f 100644 --- a/src/core/function/gpg/GpgFileOpera.h +++ b/src/core/function/gpg/GpgFileOpera.h @@ -50,10 +50,9 @@ class GPGFRONTEND_CORE_EXPORT GpgFileOpera { * @param channel Channel in context * @return unsigned int error code */ - static auto EncryptFile(KeyListPtr keys, const std::string& in_path, - const std::string& out_path, GpgEncrResult& result, - int channel = kGpgFrontendDefaultChannel) - -> unsigned int; + static void EncryptFile(std::vector<GpgKey> keys, const std::string& in_path, + const std::string& out_path, bool ascii, + const GpgOperationCallback& cb); /** * @brief Encrypted file symmetrically (with password) @@ -78,9 +77,9 @@ class GPGFRONTEND_CORE_EXPORT GpgFileOpera { * @param result * @return GpgError */ - static auto DecryptFile(const std::string& in_path, - const std::string& out_path, GpgDecrResult& result) - -> GpgError; + static void DecryptFile(const std::string& in_path, + const std::string& out_path, + const GpgOperationCallback& cb); /** * @brief Sign file with private key |