<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gpgme/lang/cpp/src/key.h, 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-05-21T14:38:59Z</updated>
<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: Expliticly declare compiler generated copy constructors</title>
<updated>2023-01-05T19:17:57Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2023-01-05T19:17:57Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=dc9cc9aa0754d834388acabb5a68677f6512b960'/>
<id>urn:sha1:dc9cc9aa0754d834388acabb5a68677f6512b960</id>
<content type='text'>
* lang/cpp/src/configuration.h (Component, Option),
lang/cpp/src/data.h (Data),
lang/cpp/src/decryptionresult.h (DecryptionResult,
DecryptionResult::Recipient),
lang/cpp/src/encryptionresult.h (EncryptionResult, InvalidRecipient),
lang/cpp/src/engineinfo.h (EngineInfo),
lang/cpp/src/importresult.h (ImportResult, Import),
lang/cpp/src/key.h (Key, Subkey, UserID, UserID::Signature),
lang/cpp/src/keygenerationresult.h (KeyGenerationResult),
lang/cpp/src/keylistresult.h (KeyListResult),
lang/cpp/src/notation.h (Notation),
lang/cpp/src/signingresult.h (SigningResult, InvalidSigningKey,
CreatedSignature),
lang/cpp/src/swdbresult.h (SwdbResult),
lang/cpp/src/tofuinfo.h (TofuInfo),
lang/cpp/src/verificationresult.h (VerificationResult, Signature),
lang/cpp/src/vfsmountresult.h (VfsMountResult): Explitily declare
compiler generated copy constructor.
--

This fixes "implicitly-declared copy constructor is deprecated"
warnings.
</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: 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>
<entry>
<title>cpp: Add ostream operator for subkey</title>
<updated>2020-08-04T14:53:28Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2020-08-04T14:09:05Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=197ba151e70c0aef35ee713b119d49e4637c1d05'/>
<id>urn:sha1:197ba151e70c0aef35ee713b119d49e4637c1d05</id>
<content type='text'>
* lang/cpp/src/key.cpp (Subkey): Add ostream operator.
* lang/cpp/src/key.h: Update accordingly.
--

This is helpful for debugging / showing the state of a subkey.
</content>
</entry>
<entry>
<title>cpp, qt: Use uidhash to select uids for signing</title>
<updated>2019-12-13T17:06:00Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@gnupg.org</email>
</author>
<published>2019-12-13T17:06:00Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=194272dbc3e326cc32c1464bc6fda0c0d10b5559'/>
<id>urn:sha1:194272dbc3e326cc32c1464bc6fda0c0d10b5559</id>
<content type='text'>
* lang/cpp/src/gpgsignkeyeditinteractor.cpp (action):
Use uidhash instead of number.
(GpgSignKeyEditInteractor::setKey): New.
* lang/cpp/src/gpgsignkeyeditinteractor.h: Update accordingly.
* lang/cpp/src/key.h, lang/cpp/src/key.cpp: Wrap uidhash.
* lang/qt/src/qgpgmesignkeyjob.cpp: Set the key.

--
Using the uidhash avoids problems when the user ids
on --edit-key are different ones then the uids
captured by gpgme when listing keys. Or if
they are in a different order. This can happen
with cached keys or keys with user attributes.
</content>
</entry>
</feed>
