<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gpgme/lang/cpp/src/key.cpp, branch ikloecker/t7110-nested-bindings-packages</title>
<subtitle>GnuPG Made Easy.</subtitle>
<id>http://git.bktus.com/gpgfrontend/gpgme/atom?h=ikloecker%2Ft7110-nested-bindings-packages</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/gpgme/atom?h=ikloecker%2Ft7110-nested-bindings-packages'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/'/>
<updated>2024-06-11T12:23:40Z</updated>
<entry>
<title>cpp: Don't include config.h</title>
<updated>2024-06-11T12:23:40Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2024-05-27T09:44:41Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=e64dd7ee510cfd41cefc1ff3c6204ebe0fe1f567'/>
<id>urn:sha1:e64dd7ee510cfd41cefc1ff3c6204ebe0fe1f567</id>
<content type='text'>
* lang/cpp/src/*.cpp, lang/cpp/tests/*.cpp: Remove config.h include.
--

The C++ binding sources don't need anything from config.h.

GnuPG-bug-id: 7110
</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: Support new key capability flags</title>
<updated>2023-10-05T13:27:52Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2023-10-05T13:27:52Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=a9e5a25b56abb7f27812f333c287a7adae9e18e8'/>
<id>urn:sha1:a9e5a25b56abb7f27812f333c287a7adae9e18e8</id>
<content type='text'>
* lang/cpp/src/key.cpp, lang/cpp/src/key.h (class Key): New methods
hasCertify, hasSign, hasEncrypt, hasAuthenticate.
--

GnuPG-bug-id: 6748
</content>
</entry>
<entry>
<title>cpp: Fix Key::canSign()</title>
<updated>2023-04-18T11:16:22Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2023-04-18T11:16:22Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=5bd84cfd3f092703bb4b9b993be7d89ca13b36b0'/>
<id>urn:sha1:5bd84cfd3f092703bb4b9b993be7d89ca13b36b0</id>
<content type='text'>
* lang/cpp/src/key.h (canReallySign): Deprecate.
* lang/cpp/src/key.cpp (canSign): Remove workaround. Use implementation
of canReallySign.
(canReallySign): Use canSign().
(operator&lt;&lt;): Use canSign().
--

The workaround in canSign was added 19 years ago and canReallySign, the
workaround for the workaround, was added 13 years ago. Time to get rid
of those workarounds for a bug in gpgme which has been fixed long ago
and which cause bugs for any unsuspecting user of Key::canSign().

GnuPG-bug-id: 6456
</content>
</entry>
<entry>
<title>core,cpp: Add new key flags to gpgme_subkey_t</title>
<updated>2023-03-21T07:37:47Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2023-03-21T07:36:33Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=6d21256c9220df05bf92a695a787dde13fe44ca7'/>
<id>urn:sha1:6d21256c9220df05bf92a695a787dde13fe44ca7</id>
<content type='text'>
* src/gpgme.h.in (struct _gpgme_subkey): Add bit flags can_renc,
can_timestamp, adn is_group_owned. Reduce size of _unused.
* src/keylist.c (set_subkey_capability): Set them.
* tests/run-keylist.c (main): Print them.

* lang/cpp/src/key.h (Subkey::canRenc): New.
(Subkey::canTimestamp): New.
(Subkey::isGroupOwned): New.
* lang/cpp/src/key.cpp: Implement new methods.
(Subkey::isQualified): Print them.
(std::ostream &amp;operator&lt;&lt;): Print them.
--

GnuPG-bug-id: 6395
</content>
</entry>
<entry>
<title>cpp: Output more properties of a subkey</title>
<updated>2022-05-05T15:25:47Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2022-05-05T15:24:07Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=306fd9c915cbccddbd146f37ba9bd826f10d2535'/>
<id>urn:sha1:306fd9c915cbccddbd146f37ba9bd826f10d2535</id>
<content type='text'>
* lang/cpp/src/key.cpp (ostream operator&lt;&lt; for Subkey): Fix wrong output
of isInvalid and isDisabled flags. Add output of key grip, card serial
number and the flags isSecret, isQualified, isDeVs, and isCardKey.
--

This makes it easier to check those properties for different keys, e.g.
with the run-keylist test program.

GnuPG-bug-id: 5965
</content>
</entry>
<entry>
<title>cpp: Add getters for the attributes of a trust signature</title>
<updated>2021-05-05T17:25:48Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2021-05-04T16:35:47Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=e391a08c6f96cd2d93c49b888459ee3f42058118'/>
<id>urn:sha1:e391a08c6f96cd2d93c49b888459ee3f42058118</id>
<content type='text'>
* lang/cpp/src/key.h (TrustSignatureTrust): New enum.
* lang/cpp/src/key.h, lang/cpp/src/key.cpp
(UserID::Signature::isTrustSignature): New.
(UserID::Signature::trustValue): New.
(UserID::Signature::trustDepth): New.
(UserID::Signature::trustScope): New.
--

GnuPG-bug-id: 5245, 5420
</content>
</entry>
<entry>
<title>cpp: Add const-overload of UserID::Signature::operator&lt;</title>
<updated>2021-01-04T15:30:41Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2021-01-04T15:29:36Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=a6220adf3081c9c848f6d0a6fc3774cb168ccf9c'/>
<id>urn:sha1:a6220adf3081c9c848f6d0a6fc3774cb168ccf9c</id>
<content type='text'>
lang/cpp/src/key.h, lang/cpp/src/key.cpp (UserID::Signature::operator&lt;):
Add const-overload. Deprecate non-const overload.

--

This fixes compilation on FreeBSD with clang 10.
</content>
</entry>
<entry>
<title>cpp: Mark helper functions as static</title>
<updated>2020-11-03T08:01:32Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2020-11-03T08:01:32Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=b41f5fec1c42e0113ccbdbb7c258899793631b0a'/>
<id>urn:sha1:b41f5fec1c42e0113ccbdbb7c258899793631b0a</id>
<content type='text'>
lang/cpp/src/key.cpp (find_subkey, verify_subkey, find_uid, verify_uid,
find_signature, verify_signature): Mark as static.
</content>
</entry>
<entry>
<title>cpp: Make signatures belonging to the same user ID sortable</title>
<updated>2020-11-03T07:59:54Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2020-11-03T07:59:54Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=6a6d2a27648490f08aaf0759a533aef08b32070d'/>
<id>urn:sha1:6a6d2a27648490f08aaf0759a533aef08b32070d</id>
<content type='text'>
lang/cpp/src/key.h, lang/cpp/src/key.cpp (UserID::Signature::operator&lt;):
New.
lang/cpp/src/key.cpp (signature_index): New.
--

operator&lt; defines a canonical sort order for signatures belonging to
the same user ID. It is based on the sort order defined by
cmp_signodes() in g10/keylist.c of gnupg. In particular, the ordering
of signatures made with the same key by creation time allows to see
easily whether the most recent signature is a certification or a
revocation.

GnuPG-bug-id: 5094
recent
</content>
</entry>
</feed>
