aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/signingresult.cpp
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2023-12-19 14:01:18 +0100
committerIngo Klöcker <[email protected]>2023-12-19 14:01:18 +0100
commit60c0fd7c955d6b8c1d0d7be3d3c65257c6418a26 (patch)
tree450f19fd9ab1672b4b169ea4c34497246fbb4ae0 /lang/cpp/src/signingresult.cpp
parentcore: Support writing the decrypt/verify output directly to a file (diff)
downloadgpgme-60c0fd7c955d6b8c1d0d7be3d3c65257c6418a26.tar.gz
gpgme-60c0fd7c955d6b8c1d0d7be3d3c65257c6418a26.zip
cpp: Support new flags for direct signing/encryption of files
* lang/cpp/src/context.h (enum EncryptionFlags): Add constant EncryptFile. * lang/cpp/src/global.h (enum SignatureMode): Add constant SignFile. * lang/cpp/src/context.cpp (sigflags2sigflags): Handle new flag SignFile. (encryptflags2encryptflags): Handle new flag EncryptFile. (operator<<): Add new flags to the corresponding debug streams. * lang/cpp/src/signingresult.cpp (CreatedSignature::mode): Handle new flag SignFile (even if it cannot occur). -- GnuPG-bug-id: 6550
Diffstat (limited to 'lang/cpp/src/signingresult.cpp')
-rw-r--r--lang/cpp/src/signingresult.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lang/cpp/src/signingresult.cpp b/lang/cpp/src/signingresult.cpp
index 06169cbc..c92a6e3e 100644
--- a/lang/cpp/src/signingresult.cpp
+++ b/lang/cpp/src/signingresult.cpp
@@ -200,6 +200,7 @@ GpgME::SignatureMode GpgME::CreatedSignature::mode() const
case GPGME_SIG_MODE_DETACH: return Detached;
case GPGME_SIG_MODE_CLEAR: return Clearsigned;
case GPGME_SIG_MODE_ARCHIVE: return SignArchive; // cannot happen
+ case GPGME_SIG_MODE_FILE: return SignFile; // cannot happen
}
}