aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/function/GpgFileOpera.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-12-12 09:36:08 +0000
committerSaturneric <[email protected]>2021-12-12 09:36:08 +0000
commite3792543f6d8b8dd8b0af78194967cc70448873f (patch)
tree7b078a5b437576e8021c2bb90a570c3f1969fbfe /src/gpg/function/GpgFileOpera.cpp
parentAdd Support For UI Header include Path (diff)
downloadGpgFrontend-e3792543f6d8b8dd8b0af78194967cc70448873f.tar.gz
GpgFrontend-e3792543f6d8b8dd8b0af78194967cc70448873f.zip
Fixed & Modified & Added.
1. Fixed UTF-16 & UTF-8 filesystem path's bugs. 2. Added mkdir & create empty file. 3. Improve file browser. 4. Added Infoboard.ui. 5. Fixed Verify Bugs.
Diffstat (limited to 'src/gpg/function/GpgFileOpera.cpp')
-rw-r--r--src/gpg/function/GpgFileOpera.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gpg/function/GpgFileOpera.cpp b/src/gpg/function/GpgFileOpera.cpp
index c3f75cf8..42b37c71 100644
--- a/src/gpg/function/GpgFileOpera.cpp
+++ b/src/gpg/function/GpgFileOpera.cpp
@@ -41,7 +41,7 @@ GpgFrontend::GpgError GpgFrontend::GpgFileOpera::EncryptFile(
if (!write_buffer_to_file(path + ".asc", *out_buffer)) {
throw std::runtime_error("write_buffer_to_file error");
};
-
+
return err;
}
@@ -94,7 +94,6 @@ gpgme_error_t GpgFrontend::GpgFileOpera::VerifyFile(const std::string& path,
if (get_file_extension(path) == ".gpg") {
auto err =
BasicOperator::GetInstance().Verify(in_buffer, sign_buffer, result);
- assert(check_gpg_error_2_err_code(err) == GPG_ERR_NO_ERROR);
return err;
} else {
sign_buffer =
@@ -150,8 +149,7 @@ gpg_error_t GpgFrontend::GpgFileOpera::DecryptVerifyFile(
if (!(file_extension == ".asc" || file_extension == ".gpg"))
out_file_name = path + ".out";
- LOG(INFO) << "GpgFrontend::GpgFileOpera::DecryptVerifyFile out_file_name"
- << out_file_name;
+ LOG(INFO) << "out_file_name" << out_file_name;
if (check_gpg_error_2_err_code(err) == GPG_ERR_NO_ERROR)
if (!write_buffer_to_file(out_file_name, *out_buffer)) {