aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/GpgContext.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-08-10 14:06:45 +0000
committerSaturneric <[email protected]>2021-08-10 14:06:45 +0000
commit61ced076e5effd3f8ddc76372242ba5fa67b6303 (patch)
tree4722a7cea8387c83f470d170d88e5a8164498d0b /src/gpg/GpgContext.cpp
parentMerge branch 'develop-ci' into develop (diff)
downloadGpgFrontend-61ced076e5effd3f8ddc76372242ba5fa67b6303.tar.gz
GpgFrontend-61ced076e5effd3f8ddc76372242ba5fa67b6303.zip
Add Functions:
GpgFrontend Settings Service Token Short Crypto Text Functions TODO: Revoke Cert Generation
Diffstat (limited to 'src/gpg/GpgContext.cpp')
-rw-r--r--src/gpg/GpgContext.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/gpg/GpgContext.cpp b/src/gpg/GpgContext.cpp
index 72c04ac9..ff32edd8 100644
--- a/src/gpg/GpgContext.cpp
+++ b/src/gpg/GpgContext.cpp
@@ -694,13 +694,12 @@ namespace GpgME {
}
gpg_error_t
- GpgContext::sign(const QVector<GpgKey> &keys, const QByteArray &inBuffer, QByteArray *outBuffer, bool detached,
+ GpgContext::sign(const QVector<GpgKey> &keys, const QByteArray &inBuffer, QByteArray *outBuffer, gpgme_sig_mode_t mode,
gpgme_sign_result_t *result) {
gpgme_error_t gpgmeError;
gpgme_data_t dataIn, dataOut;
gpgme_sign_result_t m_result;
- gpgme_sig_mode_t mode;
if (keys.isEmpty()) {
QMessageBox::critical(nullptr, tr("Key Selection"), tr("No Private Key Selected"));
@@ -729,12 +728,6 @@ namespace GpgME {
mode settings of the context are ignored.
*/
- if (detached) {
- mode = GPGME_SIG_MODE_DETACH;
- } else {
- mode = GPGME_SIG_MODE_CLEAR;
- }
-
gpgmeError = gpgme_op_sign(mCtx, dataIn, dataOut, mode);
checkErr(gpgmeError);