<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gpgme/lang/cpp/tests/run-keylist.cpp, branch gpgme-1.24-branch</title>
<subtitle>GnuPG Made Easy.</subtitle>
<id>http://git.bktus.com/gpgfrontend/gpgme/atom?h=gpgme-1.24-branch</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/gpgme/atom?h=gpgme-1.24-branch'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/'/>
<updated>2024-07-05T08:05:51Z</updated>
<entry>
<title>cpp: Deprecate Error::asString and update users</title>
<updated>2024-07-05T08:05:51Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2024-07-04T16:03:17Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=28542b14c4df40c7a54bfcf65d7c725bd99fb3e5'/>
<id>urn:sha1:28542b14c4df40c7a54bfcf65d7c725bd99fb3e5</id>
<content type='text'>
* lang/cpp/src/error.h (Error::asString): Mark as deprecated.
* lang/cpp/src/context.cpp (operator&lt;&lt;),
lang/cpp/src/editinteractor.cpp (edit_interactor_callback_impl),
lang/cpp/tests/run-getkey.cpp (main),
lang/cpp/tests/run-keylist.cpp (main),
lang/cpp/tests/run-wkdlookup.cpp (main): Use Error::asStdString instead
of Error::asString.
--

GnuPG-bug-id: 7188
</content>
</entry>
<entry>
<title>cpp: Add information about revocation keys to Key</title>
<updated>2024-05-21T14:38:59Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2024-05-21T14:32:23Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=90eb80134b2d7720b187a6b7fd16f40f23cf1022'/>
<id>urn:sha1:90eb80134b2d7720b187a6b7fd16f40f23cf1022</id>
<content type='text'>
* lang/cpp/src/gpgmefw.h (gpgme_revocation_key_t): New forward
declaration.
* lang/cpp/src/key.cpp, lang/cpp/src/key.h (class Key): New methods
revocationKey, numRevocationKeys, revocationKeys.
(class RevocationKey): New.
(swap): New overload for RevocationKey.
(operator&lt;&lt;): New overload for RevocationKey.
* lang/cpp/src/key.cpp (operator&lt;&lt;): Add information about revocation
keys to the output stream for Key.

* lang/cpp/tests/run-keylist.cpp (main): Don't output Key if nextKey
failed, e.g. at the end of the key listing.
--

GnuPG-bug-id: 7118
</content>
</entry>
<entry>
<title>cpp,tests: Actually parse the --with-secret option</title>
<updated>2022-05-05T15:24:59Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2022-05-05T15:19:39Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=e029fd27350fcbda1b4689bc557e996d749d78ac'/>
<id>urn:sha1:e029fd27350fcbda1b4689bc557e996d749d78ac</id>
<content type='text'>
* lang/cpp/tests/run-keylist.cpp (main): Handle --with-secret option.
Print error for unknown option.
--

The --with-secret option was already listed in the help. Now it also
works.

GnuPG-bug-id: 5965
</content>
</entry>
<entry>
<title>cpp,tests: Verify that requested keylist mode is used</title>
<updated>2022-04-28T08:33:23Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2022-04-28T08:33:23Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=359906c8bcde7e351540708777e3678fee0cc2c1'/>
<id>urn:sha1:359906c8bcde7e351540708777e3678fee0cc2c1</id>
<content type='text'>
* lang/cpp/tests/run-getkey.cpp, lang/cpp/tests/run-keylist.cpp (main):
Check used keylist mode.
--

Since Context::setKeyListMode() does not return the error returned by
gpgme, we need to verify explicitly that the keylist mode was set
successfully.

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: Add first manual tests</title>
<updated>2018-10-09T09:24:18Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@intevation.de</email>
</author>
<published>2018-10-09T09:24:18Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=9f85f4967e617e9f97529b89f530c1bc36b52a5c'/>
<id>urn:sha1:9f85f4967e617e9f97529b89f530c1bc36b52a5c</id>
<content type='text'>
* lang/cpp/Makefile.am: Add tests subdir.
* lang/cpp/tests/Makefile.am: New.
* lang/cpp/tests/README,
lang/cpp/tests/run-getkey.cpp,
lang/cpp/tests/run-keylist.cpp: New.
* configure.ac: Configure tests makefile.

--
The autotests for c++ live in lang/qt/tests these
tests are more for manual experiments to validate some
functionality.
</content>
</entry>
</feed>
