<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gpgme/tests/run-threaded.c, branch gpgme-1.17.0</title>
<subtitle>GnuPG Made Easy.</subtitle>
<id>http://git.bktus.com/gpgfrontend/gpgme/atom?h=gpgme-1.17.0</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/gpgme/atom?h=gpgme-1.17.0'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/'/>
<updated>2021-12-22T14:25:42Z</updated>
<entry>
<title>core: Detect bad passphrase error on certificate import</title>
<updated>2021-12-22T14:25:42Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2021-12-22T11:13:23Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=305d8668ca724982c50fe4e05315c48a20cc33e5'/>
<id>urn:sha1:305d8668ca724982c50fe4e05315c48a20cc33e5</id>
<content type='text'>
* src/import.c (gpgme_op_import_result): Check fpr for NULL.
(parse_error): New.
(import_status_handler): Handle error status line.

* doc/gpgme.texi (gpgme_import_status_t): Mention that fpr can be NULL.

* tests/gpg/t-import.c (check_result): Check fpr for NULL.
* tests/run-threaded.c (delete_impres): Check fpr for NULL.
--

When importing an encrypted certificate a wrong passphrase may be
entered. In this case gpgsm emits a status line with a bad passphrase
error and an "invalid object" error. To make it possible for callers
to handle a wrong passphrase error more gracefully, an import status
with bad passphrase error is added to the import result for each
status line with bad passphrase error.

GnuPG-bug-id: 5713
</content>
</entry>
<entry>
<title>core: Allow for older compilers.</title>
<updated>2021-05-12T06:50:04Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2021-05-12T06:47:40Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=aa98081356b5f7c9ef2422021e05aed01a7e4d46'/>
<id>urn:sha1:aa98081356b5f7c9ef2422021e05aed01a7e4d46</id>
<content type='text'>
* tests/run-verify.c (main): Remove C99-only syntax.
* tests/run-threaded.c (start_keylistings): Ditto.
--

Older gcc's do not grok this and there is no real need for it.

  run-verify.c:324: error: ‘for’ loop initial declarations are only
  allowed in C99 mode
  run-verify.c:324: note: use option -std=c99 or -std=gnu99 to compile
  your code

Reported-by: Lars Hecking
</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: Fix memleak in run-threaded</title>
<updated>2019-02-11T14:33:34Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@gnupg.org</email>
</author>
<published>2019-02-11T14:32:49Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=f8312d7c333193582dcb5816198219b9564023f0'/>
<id>urn:sha1:f8312d7c333193582dcb5816198219b9564023f0</id>
<content type='text'>
* tests/run-threaded.c (verify): Free msg.
</content>
</entry>
<entry>
<title>Add SPDX identifiers to most source files</title>
<updated>2018-11-16T12:27:33Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2018-11-16T12:27:33Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=8d91c0f4cdcc26679067ae681ae12600fb450200'/>
<id>urn:sha1:8d91c0f4cdcc26679067ae681ae12600fb450200</id>
<content type='text'>
--

Signed-off-by: Werner Koch &lt;wk@gnupg.org&gt;
</content>
</entry>
</feed>
