diff options
| author | Ingo Klöcker <[email protected]> | 2023-01-30 12:08:43 +0100 |
|---|---|---|
| committer | Ingo Klöcker <[email protected]> | 2023-01-30 12:49:12 +0100 |
| commit | 2faa031af24959d5093da430d5f10fe30d77a75d (patch) | |
| tree | 26ef2652213760a0175fd8a3a2a567738a17ce36 /lang/cpp/src/signingresult.cpp | |
| 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/signingresult.cpp')
| -rw-r--r-- | lang/cpp/src/signingresult.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lang/cpp/src/signingresult.cpp b/lang/cpp/src/signingresult.cpp index 6e0dd90a..06169cbc 100644 --- a/lang/cpp/src/signingresult.cpp +++ b/lang/cpp/src/signingresult.cpp @@ -199,6 +199,7 @@ GpgME::SignatureMode GpgME::CreatedSignature::mode() const case GPGME_SIG_MODE_NORMAL: return NormalSignatureMode; case GPGME_SIG_MODE_DETACH: return Detached; case GPGME_SIG_MODE_CLEAR: return Clearsigned; + case GPGME_SIG_MODE_ARCHIVE: return SignArchive; // cannot happen } } |
