diff options
author | Ingo Klöcker <[email protected]> | 2023-01-30 11:08:43 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2023-01-30 11:49:12 +0000 |
commit | 2faa031af24959d5093da430d5f10fe30d77a75d (patch) | |
tree | 26ef2652213760a0175fd8a3a2a567738a17ce36 /lang/cpp/src/global.h | |
parent | core: Use signature modes as flags (diff) | |
download | gpgme-2faa031af24959d5093da430d5f10fe30d77a75d.tar.gz gpgme-2faa031af24959d5093da430d5f10fe30d77a75d.zip |
cpp: Support new archive signing flag
* lang/cpp/src/global.h (enum SignatureMode): Add constant SignArchive.
* lang/cpp/src/context.cpp (sigmode2sigmode): Rename to
sigflags2sigflags
(sigflags2sigflags): ... and rename argument mode to flags and treat
it as flags. Adjust the callers.
(operator<<): Change local CHECK macro to handle flags. Add new flag
to debug stream.
* lang/cpp/src/signingresult.cpp (CreatedSignature::mode): Handle
new flags (even if it cannot occur currently).
--
GnuPG-bug-id: 6342
Diffstat (limited to 'lang/cpp/src/global.h')
-rw-r--r-- | lang/cpp/src/global.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lang/cpp/src/global.h b/lang/cpp/src/global.h index 84c8d462..c9c65cdb 100644 --- a/lang/cpp/src/global.h +++ b/lang/cpp/src/global.h @@ -74,7 +74,12 @@ enum KeyListMode { KeyListModeMask = 0x3ff }; -enum SignatureMode { NormalSignatureMode, Detached, Clearsigned }; +enum SignatureMode { + NormalSignatureMode = 0, + Detached = 1, + Clearsigned = 2, + SignArchive = 4, +}; enum class RevocationReason { Unspecified = 0, |