diff options
author | Saturn&Eric <[email protected]> | 2021-08-23 12:20:22 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-08-23 12:20:22 +0000 |
commit | cfc3f9545e713dc9378108b88d3dc97fd168a572 (patch) | |
tree | cb0ef59b60f1a0ebc70156fe1bb6a22c205497c3 /src/gpg/GpgFileOpera.cpp | |
parent | Merge pull request #15 from saturneric/develop (diff) | |
parent | Fix a discovered problem. (diff) | |
download | GpgFrontend-cfc3f9545e713dc9378108b88d3dc97fd168a572.tar.gz GpgFrontend-cfc3f9545e713dc9378108b88d3dc97fd168a572.zip |
Merge pull request #22 from saturneric/develop
Diffstat (limited to 'src/gpg/GpgFileOpera.cpp')
-rw-r--r-- | src/gpg/GpgFileOpera.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gpg/GpgFileOpera.cpp b/src/gpg/GpgFileOpera.cpp index 9395bd17..af50c79a 100644 --- a/src/gpg/GpgFileOpera.cpp +++ b/src/gpg/GpgFileOpera.cpp @@ -114,7 +114,7 @@ gpgme_error_t GpgFileOpera::signFile(GpgME::GpgContext *ctx, QVector<GpgKey> &ke auto outBuffer = QByteArray(); infile.close(); - auto error = ctx->sign(keys, inBuffer, &outBuffer, true, result); + auto error = ctx->sign(keys, inBuffer, &outBuffer, GPGME_SIG_MODE_DETACH, result); if (gpg_err_code(error) != GPG_ERR_NO_ERROR) return error; @@ -185,7 +185,10 @@ gpg_error_t GpgFileOpera::encryptSignFile(GpgME::GpgContext *ctx, QVector<GpgKey auto outBuffer = QByteArray(); infile.close(); - auto error = ctx->encryptSign(keys, inBuffer, &outBuffer, encr_res, sign_res); + QVector<GpgKey> signerKeys; + + // TODO dealing with signer keys + auto error = ctx->encryptSign(keys, signerKeys, inBuffer, &outBuffer, encr_res, sign_res); if (gpg_err_code(error) != GPG_ERR_NO_ERROR) return error; |