gpgme/tests
Andre Heinecke 09b6455432 core: Use gpgrt locking for thread safeness
* configure.ac: Require libgpg-error 1.17. No longer
check for pthread.
* doc/gpgme.texi: Document removed neccessity for thread
safe gpgme flavours.
* src/sema.h (DEFINE_GLOBAL_LOCK),
(DEFINE_STATIC_LOCK, INIT_LOCK, DECLARE_LOCK)
(DESTROY_LOCK, LOCK, UNLOCK): Change to gpgrt equivalents.
* src/posix-sema.c, src/w32-sema.c: Removed.
* src/Makefile.am: Remove libpthread and
Update accordingly.
* src/ath.c, src/ath.h (ath_mutex_init)
(ath_mutex_destroy, ath_mutex_lock, ath_mutex_unlock): Removed.
* src/ath.h (ATH_MUTEX_INITIALIZER): Removed.
* src/version.c (do_subsystem_inits): sema_subsystem_init is
no longer required.
* tests/gpg/Makefile.am: Add new threading tests.
(t_thread1_LDADD, t_cancel_LDADD):
Use just gpgme.
* tests/gpg/t-thread-keylist-verify.c,
tests/gpg/t-thread-keylist.c: New.
* src/gpgme-config.in: Use -lgpgme for thread-model pthread.

--
Using gpgrt locks instead of pthread locks removes
the neccessity to link pthread directly to gpgme and
have a different, thread safe flavor of gpgme. Now
gpgme is thread-safe if the conditions mentioned
in the doc are met.

As the cpp bindings linked against libgpgme
and not libgpgme-pthread this fixes threading problems
with them.

libgpgme-pthread is removed but gpgme-config still supports
--thread=pthread for compatibility with find scripts.
2016-11-10 13:33:13 +01:00
..
gpg core: Use gpgrt locking for thread safeness 2016-11-10 13:33:13 +01:00
gpgsm tests: Check data after decryption 2016-09-23 16:04:33 +02:00
opassuan tests: Mark lots of unused vars and fix const mismatches. 2016-09-13 20:48:06 +02:00
.gitignore .gitignore: flesh out rules and add subdirectory-.gitignores. 2012-04-20 16:05:11 +02:00
ChangeLog-2011 move some file encodings to UTF-8 2016-09-23 16:08:33 +02:00
Makefile.am core: Add gpgme_op_query_swdb and helper. 2016-11-03 17:32:30 +01:00
run-decrypt.c tests: Add new test tool run-decrypt 2016-06-24 11:33:05 +02:00
run-encrypt.c core: Make use of the "size-hint" in engine-gpg. 2016-08-12 15:32:31 +02:00
run-export.c Add an export secret key feature. 2015-08-24 12:41:24 +02:00
run-genkey.c core: New function gpgme_op_revuid. 2016-09-14 12:42:12 +02:00
run-identify.c tests: Add new test tool run-identify. 2016-06-21 16:18:00 +02:00
run-import.c Remove all trailing whitespace from source files 2012-09-25 15:29:49 +02:00
run-keylist.c core,cpp: Extend the TOFU information. 2016-09-07 09:26:11 +02:00
run-keysign.c core: New function gpgme_op_keysign. 2016-09-14 18:59:55 +02:00
run-sign.c core: New API functions gpgme_set_sender, gpgme_get_sender. 2016-10-25 17:28:01 +02:00
run-support.h tests: Use gpgme_io_write in passhrase callbacks. 2016-09-13 20:46:41 +02:00
run-swdb.c core: Add gpgme_op_query_swdb and helper. 2016-11-03 17:32:30 +01:00
run-tofu.c core: New function gpgme_op_tofu_policy 2016-09-14 20:21:19 +02:00
run-verify.c core: New API functions gpgme_set_sender, gpgme_get_sender. 2016-10-25 17:28:01 +02:00
start-stop-agent Fix test suite for GnuPG 2.1 which uses pubring.kbx. 2015-06-08 10:43:29 +02:00
t-data-1.txt 2001-10-16 Marcus Brinkmann <marcus@g10code.de> 2001-10-17 19:17:46 +00:00
t-data-2.txt 2001-10-16 Marcus Brinkmann <marcus@g10code.de> 2001-10-17 19:17:46 +00:00
t-data.c tests: Mark lots of unused vars and fix const mismatches. 2016-09-13 20:48:06 +02:00
t-engine-info.c core: Add new items for gpgme_get_dirinfo. 2016-08-22 16:57:51 +02:00
t-version.c Change the various version numbers to the new scheme. 2013-02-26 17:10:18 +01:00