<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gpgme/lang/cpp/src/context.cpp, branch gpgme-1.22.0</title>
<subtitle>GnuPG Made Easy.</subtitle>
<id>http://git.bktus.com/gpgfrontend/gpgme/atom?h=gpgme-1.22.0</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/gpgme/atom?h=gpgme-1.22.0'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/'/>
<updated>2023-06-01T07:37:41Z</updated>
<entry>
<title>doc,cpp: Treat GPG_ERR_FULLY_CANCELED as canceled</title>
<updated>2023-06-01T07:37:41Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2023-06-01T07:34:25Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=7990f70107bc8487f954c6885436a7661e162929'/>
<id>urn:sha1:7990f70107bc8487f954c6885436a7661e162929</id>
<content type='text'>
* doc/gpgme.texi (GPG_ERR_FULLY_CANCELED): New.
* lang/cpp/src/context.cpp (Error::isCanceled): Also return true for
GPG_ERR_FULLY_CANCELED.
--

For internal purposes, GnuPG sometimes uses the error code
GPG_ERR_FULLY_CANCELED instead of GPG_ERR_CANCELED. From a user
perspective both values mean the same thing and should therefore be
treated identically.

GnuPG-bug-id: 6510
</content>
</entry>
<entry>
<title>cpp: Return successful verification for signed but not encrypted data</title>
<updated>2023-02-02T11:11:29Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2023-02-02T10:59:55Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=1698eec2ae3ec1a97c739e892d9cf288c0ec4ccd'/>
<id>urn:sha1:1698eec2ae3ec1a97c739e892d9cf288c0ec4ccd</id>
<content type='text'>
* lang/cpp/src/context.cpp (Context::decrypt): Use decryptionResult().
(Context::verifyDetachedSignature, Context::verifyOpaqueSignature):
Use verificationResult().
(Context::verificationResult): Ignore "no data" error for signed but
not encrypted data.
(Context::decryptAndVerify): Use decryptionResult() and
verificationResult().
--

gpgme's decrypt operations set the error to GPG_ERR_NO_DATA if no
encrypted data was found. It makes sense to use this error for the
encryption result, but it doesn't make sense to use it also for the
verfication result if signed data was found.
This way using the combined decrypt-verify operations on data that
may be encrypted and/or signed doesn't produce confusing results.

GnuPG-bug-id: 6342
</content>
</entry>
<entry>
<title>cpp: Fix debug output of SignatureMode</title>
<updated>2023-01-31T11:01:33Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2023-01-31T10:48:19Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=41a30f6d9f59b08213ab2c307036be9bc9b6f876'/>
<id>urn:sha1:41a30f6d9f59b08213ab2c307036be9bc9b6f876</id>
<content type='text'>
* lang/cpp/src/context.cpp (operator&lt;&lt;): Treat signature mode as
combination of a 2-bit flag and a 1-bit flag.
--

This fixes the output for normal signature mode.

GnuPG-bug-id: 6342
</content>
</entry>
<entry>
<title>Merge branch 'ikloecker/t6342-gpgtar' into master</title>
<updated>2023-01-31T06:59:50Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2023-01-31T06:59:27Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=3cdcfa33f7496c3130797224f8ae327732409460'/>
<id>urn:sha1:3cdcfa33f7496c3130797224f8ae327732409460</id>
<content type='text'>
--
Solved conflicts:
	NEWS
	lang/cpp/src/context.cpp
	lang/cpp/src/context.h
</content>
</entry>
<entry>
<title>cpp: Support new archive signing flag</title>
<updated>2023-01-30T11:49:12Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2023-01-30T11:08:43Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=2faa031af24959d5093da430d5f10fe30d77a75d'/>
<id>urn:sha1:2faa031af24959d5093da430d5f10fe30d77a75d</id>
<content type='text'>
* 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&lt;&lt;): 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
</content>
</entry>
<entry>
<title>cpp: Support new archive encryption flag</title>
<updated>2023-01-27T11:16:02Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2023-01-27T08:40:05Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=d28ea8c6b3db008150e2bae99a33e30b55c4bc10'/>
<id>urn:sha1:d28ea8c6b3db008150e2bae99a33e30b55c4bc10</id>
<content type='text'>
* lang/cpp/src/context.h (EncryptArchive): New flag.
* lang/cpp/src/context.cpp (encryptflags2encryptflags): Convert
EncryptArchive to corresponding gpgme encrypt flags.
(operator&lt;&lt;): Add new flag to debug stream.
--

GnuPG-bug-id: 6342
</content>
</entry>
<entry>
<title>cpp: Support all encryption flags</title>
<updated>2023-01-26T11:01:28Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2023-01-26T10:59:50Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=3e31f648e513bed0029b09104d416d25fca08868'/>
<id>urn:sha1:3e31f648e513bed0029b09104d416d25fca08868</id>
<content type='text'>
* lang/cpp/src/context.h (WantAddress): New flag.
* lang/cpp/src/context.cpp (encryptflags2encryptflags): Convert
WantAddress to corresponding gpgme encrypt flags.
(operator&lt;&lt;): Add new flag to debug stream.
--

GnuPG-bug-id: 6359
</content>
</entry>
<entry>
<title>cpp: Pass ThrowKeyIds and EncryptWrap flags to GpgME</title>
<updated>2023-01-26T11:01:10Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2023-01-26T10:52:28Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=70aaf05a6a3eafd1ba96df71d03334337b1d071d'/>
<id>urn:sha1:70aaf05a6a3eafd1ba96df71d03334337b1d071d</id>
<content type='text'>
* lang/cpp/src/context.cpp (encryptflags2encryptflags): Convert
ThrowKeyIds and EncryptWrap to corresponding gpgme encrypt flags.
(operator&lt;&lt;): Add flags to debug stream.
--

GnuPG-bug-id: 6359
</content>
</entry>
<entry>
<title>cpp: Add support for gpgme_op_set_uid_flag</title>
<updated>2022-08-09T12:52:42Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2022-08-09T07:35:19Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=125867f268f2a49ff060a7adc859500500b77025'/>
<id>urn:sha1:125867f268f2a49ff060a7adc859500500b77025</id>
<content type='text'>
* lang/cpp/src/context.cpp, lang/cpp/src/context.h
(Context::setPrimaryUid, Context::startSetPrimaryUid): New.
--

GnuPG-bug-id: 5938
</content>
</entry>
<entry>
<title>cpp: Allow retrieving import result of key listing with locate mode</title>
<updated>2022-05-04T12:31:03Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2022-05-04T12:31:03Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=3519d6117332f25b601c9c0636878baf4e8cf55b'/>
<id>urn:sha1:3519d6117332f25b601c9c0636878baf4e8cf55b</id>
<content type='text'>
* lang/cpp/src/context_p.h (enum Context::Private::Operation): Add
value KeyListWithImport.
* lang/cpp/src/context.cpp (Context::startKeyListing, Context::nextKey):
Set lastop to KeyListWithImport if keylist mode includes Locate.
--

Adding Import to lastop for keylist operations that perform a locate
allows retrieving the import result with Context::importResult.

GnuPG-bug-id: 5951
</content>
</entry>
</feed>
