<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gpgme/tests, branch dkg/fix-4821</title>
<subtitle>GnuPG Made Easy.</subtitle>
<id>http://git.bktus.com/gpgfrontend/gpgme/atom?h=dkg%2Ffix-4821</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/gpgme/atom?h=dkg%2Ffix-4821'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/'/>
<updated>2019-12-13T14:11:00Z</updated>
<entry>
<title>core: Extend gpgme_user_id_t with uidhash member.</title>
<updated>2019-12-13T14:11:00Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2019-12-13T14:10:51Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=5eeae535ee0df981d8ae8b758b5bb0d190c7fd89'/>
<id>urn:sha1:5eeae535ee0df981d8ae8b758b5bb0d190c7fd89</id>
<content type='text'>
* src/gpgme.h.in (struct _gpgme_user_id): Add field 'uidhash'.
* src/key.c (gpgme_key_unref): Free it.
* src/keylist.c (keylist_colon_handler): Set it.
* tests/run-keylist.c (main): Print it.
--

The uidhash value is part of gpg's output since the year 2005.  This
now adds support to gpgme.  The application for uidhash is to select
a user id in an edit interactor: Instead of giving the number of the
user id, the uidhash value can be be used to avoid tracking the user
id numbers.

Signed-off-by: Werner Koch &lt;wk@gnupg.org&gt;
</content>
</entry>
<entry>
<title>json: Fix t-decrypt-verify.out for GnuPG &gt;= 2.3.</title>
<updated>2019-08-06T02:19:59Z</updated>
<author>
<name>NIIBE Yutaka</name>
<email>gniibe@fsij.org</email>
</author>
<published>2019-08-06T02:19:59Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=b97434fbf087f3176daf39699ff579d38d265317'/>
<id>urn:sha1:b97434fbf087f3176daf39699ff579d38d265317</id>
<content type='text'>
* tests/json/t-decrypt-verify.out.json: Remove check with key of
04071FB807287134.

--

GnuPG 2.3 changes how public key decryption works; It collects list of
PUBKEY_ENC packets and then processes an ENCRYPTED* packet.  At the
stage of processing an ENCRYPTED* packet, it checks if private keys
can decrypt any of PUBKEY_ENC packets.  It does not necessarily
examine all of PUBKEY_ENC packets.  Only when it finds a PUBKEY_ENC
packet cannot be decrypted, it reports STATUS_NO_SECKEY with keyid of
that packet.

GnuPG 2.2 or older tries PUBKEY_ENC packets in order, and the first
successful PUBKEY_ENC packet is used.  Rest of PUBKEY_ENC packets are
not examined, but STATUS_NO_SECKEY with keyid is reported even when
there is a valid private key.

Signed-off-by: NIIBE Yutaka &lt;gniibe@fsij.org&gt;
</content>
</entry>
<entry>
<title>tests: Minor fix to run-threaded.c.</title>
<updated>2019-06-06T16:59:16Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2019-06-06T16:59:16Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=f6fd90c99aea8b604d76ae49d29bc5269c236a98'/>
<id>urn:sha1:f6fd90c99aea8b604d76ae49d29bc5269c236a98</id>
<content type='text'>
* tests/run-threaded.c (random_data_close): Correct FD test.
--

An invalid DS is -1 and not 0; this fix is for correctness and does
not chnage anything in the real world.

Signed-off-by: Werner Koch &lt;wk@gnupg.org&gt;
</content>
</entry>
<entry>
<title>tests: Add option "allow-del" to run-threaded</title>
<updated>2019-06-06T07:19:02Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@gnupg.org</email>
</author>
<published>2019-06-06T07:19:02Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=e6f28273062ff26344163e219c1b784ae99de980'/>
<id>urn:sha1:e6f28273062ff26344163e219c1b784ae99de980</id>
<content type='text'>
* tests/run-threaded.c (main): Handle allow-del.
(allow-del): New. Variable to allow deletion of keys.
(import): Delete key after import if allow-del is set.
(delete_impres): Delete keys from an import result.
(delete_fpr): Delete a key by fingerprint.

--
This is intended to test write access and locking of the
keyring by repeatedly importing and deleting pubkeys.

It is an option because it might cause keyring corruption
etc. so it should be explicitly enabled.
</content>
</entry>
<entry>
<title>tests: Implement import in run-threaded</title>
<updated>2019-06-05T15:23:59Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@gnupg.org</email>
</author>
<published>2019-06-05T15:23:59Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=024a7f75d4b8e017b92a13552b23e7fb1d22a5ce'/>
<id>urn:sha1:024a7f75d4b8e017b92a13552b23e7fb1d22a5ce</id>
<content type='text'>
* tests/run-threaded.c (import): New.
(do_data_op): Call it.
</content>
</entry>
<entry>
<title>tests: Use synced output for error in run-threaded</title>
<updated>2019-06-05T14:20:31Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@gnupg.org</email>
</author>
<published>2019-06-05T14:14:38Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=3a3648e3a56712261bda4fa866bd2419a740cec8'/>
<id>urn:sha1:3a3648e3a56712261bda4fa866bd2419a740cec8</id>
<content type='text'>
* tests/run-threaded.c (do_data_op): Use synced out macro.
</content>
</entry>
<entry>
<title>tests: Avoid variable named the same as a macro</title>
<updated>2019-06-05T14:20:31Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@gnupg.org</email>
</author>
<published>2019-06-05T14:08:54Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=3a11421d0f63b8cb5afa407cd65f763b11033241'/>
<id>urn:sha1:3a11421d0f63b8cb5afa407cd65f763b11033241</id>
<content type='text'>
* tests/run-threaded.c (decrypt, verify): Don't use a variable name
that is also a macro.

--
It just looks confusing and strange at first glance.
</content>
</entry>
<entry>
<title>tests,w32: Fix thread creation in run-threaded</title>
<updated>2019-06-05T14:20:31Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@gnupg.org</email>
</author>
<published>2019-06-05T14:07:43Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=9bbe15ebbc41533fa219d5b3017a26a75bc72731'/>
<id>urn:sha1:9bbe15ebbc41533fa219d5b3017a26a75bc72731</id>
<content type='text'>
* tests/run-threaded.c (create_thread): Check proper return
value and not return value of CloseHandle.
</content>
</entry>
<entry>
<title>tests: add two new types of encrypted data</title>
<updated>2019-05-03T02:23:28Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2018-12-05T17:31:07Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=c5c3a9d10be415ea7bc0cd9730ad6085f16ee7a0'/>
<id>urn:sha1:c5c3a9d10be415ea7bc0cd9730ad6085f16ee7a0</id>
<content type='text'>
* tests/gpg/cipher-3.asc: add an encrypted file containing signatures
(one from a known key, and one from an unknown key)
* tests/gpg/cipher-no-sig.asc: add an encrypted file containing no
signatures at all

--

We currently aren't using these files yet, but they should be useful
for exercising the library in unusual circumstances (where the bugs
are).

Signed-off-by: Daniel Kahn Gillmor &lt;dkg@fifthhorseman.net&gt;
</content>
</entry>
<entry>
<title>tests: Add cms mode to run-import</title>
<updated>2019-05-02T08:26:44Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@gnupg.org</email>
</author>
<published>2019-05-02T08:26:44Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=4746c5c9e2dd9a3ee471a429c19bc1f7fd1d07db'/>
<id>urn:sha1:4746c5c9e2dd9a3ee471a429c19bc1f7fd1d07db</id>
<content type='text'>
* tests/run-import.c (show_usage): Add doc for cms / openpgp.
(main): Handle protocol.
</content>
</entry>
</feed>
