[svn] gcry - r1124 - trunk/src
svn author mo
cvs at cvs.gnupg.org
Sun Oct 9 15:32:36 CEST 2005
Author: mo
Date: 2005-10-09 15:32:35 +0200 (Sun, 09 Oct 2005)
New Revision: 1124
Modified:
trunk/src/ChangeLog
trunk/src/global.c
Log:
2005-10-09 Moritz Schulte <moritz at g10code.com>
* global.c (gcry_control): Call global_init() after passing thread
cbs to ath. global_init() MUST to be called AFTER passing the cbs
to ath and BEFORE calling library functions, which make use of
ath. This change combines cbs installing with ath initialization
and thus removes the need to call other library initialization
functions inbetween like e.g. gcry_check_version().
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2005-10-09 12:29:17 UTC (rev 1123)
+++ trunk/src/ChangeLog 2005-10-09 13:32:35 UTC (rev 1124)
@@ -1,3 +1,12 @@
+2005-10-09 Moritz Schulte <moritz at g10code.com>
+
+ * global.c (gcry_control): Call global_init() after passing thread
+ cbs to ath. global_init() MUST to be called AFTER passing the cbs
+ to ath and BEFORE calling library functions, which make use of
+ ath. This change combines cbs installing with ath initialization
+ and thus removes the need to call other library initialization
+ functions inbetween like e.g. gcry_check_version().
+
2005-10-01 Moritz Schulte <moritz at g10code.com>
* ath.c: Assign copyright to FSF.
Modified: trunk/src/global.c
===================================================================
--- trunk/src/global.c 2005-10-09 12:29:17 UTC (rev 1123)
+++ trunk/src/global.c 2005-10-09 13:32:35 UTC (rev 1124)
@@ -275,6 +275,8 @@
case GCRYCTL_SET_THREAD_CBS:
err = ath_install (va_arg (arg_ptr, void *), any_init_done);
+ if (! err)
+ global_init ();
break;
case GCRYCTL_FAST_POLL:
More information about the Gnupg-commits
mailing list