<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gpgme/lang/cpp/src/context.cpp, branch ikloecker/qt6</title>
<subtitle>GnuPG Made Easy.</subtitle>
<id>http://git.bktus.com/gpgfrontend/gpgme/atom?h=ikloecker%2Fqt6</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/gpgme/atom?h=ikloecker%2Fqt6'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/'/>
<updated>2022-08-09T12:52:42Z</updated>
<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>
<entry>
<title>cpp: Add RAII class for saving/restoring the key list mode</title>
<updated>2022-05-02T13:51:44Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2022-05-02T13:50:18Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=34786132fed0a776d4cd314c44ed62e29ff75328'/>
<id>urn:sha1:34786132fed0a776d4cd314c44ed62e29ff75328</id>
<content type='text'>
* lang/cpp/src/context.h, lang/cpp/src/context.cpp (class Context):
Add nested class KeyListModeSaver.
--

This RAII-style class can be used to save the currently used key list
mode in case it needs to be changed temporarily. On destruction, it
will restore the key list mode that was active at construction time.

GnuPG-bug-id: 5951
</content>
</entry>
<entry>
<title>cpp: Support new keylist modes</title>
<updated>2022-04-27T15:21:04Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2022-04-27T15:21:04Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=dea872f21ff77cd58bafe0966d89d6331c8d2e07'/>
<id>urn:sha1:dea872f21ff77cd58bafe0966d89d6331c8d2e07</id>
<content type='text'>
* lang/cpp/src/global.h (ForceExtern, LocateExternal, KeyListModeMask):
New.
* lang/cpp/src/context.cpp (operator&lt;&lt;): Add check.
* lang/cpp/src/util.h (gpgme_keylist_mode_t,
convert_from_gpgme_keylist_mode_t): Handle ForceExtern.
* lang/cpp/tests/run-getkey.cpp (show_usage, main): Add arguments
--force-extern and --locate-external.
* lang/cpp/tests/run-keylist.cpp (show_usage, main): Ditto.
--

GnuPG-bug-id: 5951
</content>
</entry>
<entry>
<title>cpp: Put local helper function into unnamed namespace</title>
<updated>2022-03-28T15:22:48Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2022-03-28T15:00:25Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=92139e7b6b5fe84015d44d9516f3e1df7a3fc3bc'/>
<id>urn:sha1:92139e7b6b5fe84015d44d9516f3e1df7a3fc3bc</id>
<content type='text'>
lang/cpp/src/context.cpp (to_auditlog_flags): Wrap in unnamed namespace.
--

GnuPG-bug-id: 5906
</content>
</entry>
<entry>
<title>cpp: Allow import of keys given by key ids</title>
<updated>2022-02-03T14:56:30Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2022-02-02T10:07:53Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=bbaeeb5b9d5cca99c332cb88c7ae5f14e8745427'/>
<id>urn:sha1:bbaeeb5b9d5cca99c332cb88c7ae5f14e8745427</id>
<content type='text'>
* lang/cpp/src/context.h (class Context): Add overloads of member
functions importKeys and startKeyImport
* lang/cpp/src/context.cpp (class Context): ... and implement them.
--

GnuPG-bug-id: 5808
</content>
</entry>
<entry>
<title>cpp: Allow export of secret subkeys</title>
<updated>2022-01-04T14:50:59Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2022-01-04T14:50:59Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=e5c7fc3e022841be8f68fad8b9b64dd601b89ba7'/>
<id>urn:sha1:e5c7fc3e022841be8f68fad8b9b64dd601b89ba7</id>
<content type='text'>
* lang/cpp/src/context.h (enum Context::ExportMode): Add value
ExportSecretSubkey.
(class Context): Add member functions exportSecretSubkeys and
startSecretSubkeyExport.
* lang/cpp/src/context.cpp (Context::exportPublicKeys,
Context::startPublicKeyExport): Return error if ExportSecretSubkey
mode flag is set.
(Context::exportSecretSubkeys, Context::startSecretSubkeyExport):
Implement.
--

GnuPG-bug-id: 5757
</content>
</entry>
<entry>
<title>cpp: Allow export of secret keys</title>
<updated>2022-01-04T14:44:16Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2022-01-04T14:23:40Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=3da06d1096ee29d70656f07edcabc3bc4351104e'/>
<id>urn:sha1:3da06d1096ee29d70656f07edcabc3bc4351104e</id>
<content type='text'>
* lang/cpp/src/context.h (class Context): New member functions
exportSecretKeys, startSecretKeyExport, exportKeys, startKeyExport.
(Context::exportPublicKeys, Context::startPublicKeyExport): Rename
argument flags/export_mode to mode.
* lang/cpp/src/context.cpp (Context::exportPublicKeys): Return error if
ExportSecret mode flag is set. Call exportKeys().
(Context::startPublicKeyExport): Return error if
ExportSecret mode flag is set. Call startKeyExport().
(Context::exportSecretKeys, Context::startSecretKeyExport,
Context::exportKeys, Context::startKeyExport): Implement.
--

This adds export functions for secret key exports and generic export
functions that can be used for any key export supported by
gpgme_op_export[_ext][_start].

GnuPG-bug-id: 5757
</content>
</entry>
<entry>
<title>cpp: Remove obsolete workaround</title>
<updated>2022-01-04T08:56:46Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2022-01-04T08:56:46Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=fa5f1b57cc12f9305d112f11c2c2d95751ed1a25'/>
<id>urn:sha1:fa5f1b57cc12f9305d112f11c2c2d95751ed1a25</id>
<content type='text'>
* lang/cpp/src/context.cpp (Context::startKeyListing,
Context::exportPublicKeys, Context::startPublicKeyExport): Remove
workaround.
--

gpgme_op_keylist_ext[_start] supports GPGME_KEYLIST_MODE_EXTERN
since a long time. And the export doesn't use a keylisting (anymore),
so that the keylisting mode is irrelevant for the export.

GnuPG-bug-id: 5757
</content>
</entry>
<entry>
<title>cpp: Return engine info for engine used by the context</title>
<updated>2021-12-07T10:14:32Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2021-12-07T10:13:59Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=0eddc867c31dd7239a1a9c4196bf8dc1372ea4b1'/>
<id>urn:sha1:0eddc867c31dd7239a1a9c4196bf8dc1372ea4b1</id>
<content type='text'>
lang/cpp/src/context.cpp (Context::engineInfo()): Return engine info
for protocol of context.
--

This change also fixes Context::setEngineFileName() and
Context::setEngineHomeDirectory() which overwrote home dir resp.
file name of the engine info for the protocol of context with the
corresponding value of the "first" engine info (i.e. engine info for
gpg) instead of keeping the current home dir resp. file name.

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