[svn] GnuPG - r5181 - in trunk: . agent common g13 scd
svn author marcus
cvs at cvs.gnupg.org
Fri Oct 16 20:35:04 CEST 2009
Author: marcus
Date: 2009-10-16 20:35:03 +0200 (Fri, 16 Oct 2009)
New Revision: 5181
Modified:
trunk/ChangeLog
trunk/agent/ChangeLog
trunk/agent/Makefile.am
trunk/agent/gpg-agent.c
trunk/common/ChangeLog
trunk/common/Makefile.am
trunk/configure.ac
trunk/g13/ChangeLog
trunk/g13/Makefile.am
trunk/g13/g13.c
trunk/scd/ChangeLog
trunk/scd/Makefile.am
trunk/scd/scdaemon.c
Log:
2009-10-16 Marcus Brinkmann <marcus at g10code.com>
* configure.ac: Check for libassuan instead of libassuan-pth.
common/
2009-10-16 Marcus Brinkmann <marcus at g10code.com>
* Makefile.am (libcommon_a_CFLAGS): Use LIBASSUAN_CFLAGS instead
of LIBASSUAN_PTH_CFLAGS.
scd/
2009-10-16 Marcus Brinkmann <marcus at g10code.com>
* AM_CFLAGS, scdaemon_LDADD: Use libassuan instead of libassuan-pth.
* scdaemon.c: Invoke ASSUAN_SYSTEM_PTH_IMPL.
(main): Call assuan_set_system_hooks and assuan_sock_init.
g13/
2009-10-16 Marcus Brinkmann <marcus at g10code.com>
* AM_CFLAGS, g13_LDADD: Use libassuan instead of libassuan-pth.
* g13.c: Invoke ASSUAN_SYSTEM_PTH_IMPL.
(main): Call assuan_set_system_hooks.
agent/
2009-10-16 Marcus Brinkmann <marcus at g10code.com>
* gpg_agent_CFLAGS, gpg_agent_LDADD: Use libassuan instead of
libassuan-pth.
* gpg-agent.c: Invoke ASSUAN_SYSTEM_PTH_IMPL.
(main): Call assuan_set_system_hooks and assuan_sock_init.
Fix invocation of assuan_socket_connect.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-10-16 18:29:01 UTC (rev 5180)
+++ trunk/ChangeLog 2009-10-16 18:35:03 UTC (rev 5181)
@@ -1,3 +1,7 @@
+2009-10-16 Marcus Brinkmann <marcus at g10code.com>
+
+ * configure.ac: Check for libassuan instead of libassuan-pth.
+
2009-10-12 Werner Koch <wk at g10code.com>
* configure.ac: Use -O3 because newer gcc versions require that
Modified: trunk/agent/ChangeLog
===================================================================
--- trunk/agent/ChangeLog 2009-10-16 18:29:01 UTC (rev 5180)
+++ trunk/agent/ChangeLog 2009-10-16 18:35:03 UTC (rev 5181)
@@ -1,3 +1,11 @@
+2009-10-16 Marcus Brinkmann <marcus at g10code.com>
+
+ * gpg_agent_CFLAGS, gpg_agent_LDADD: Use libassuan instead of
+ libassuan-pth.
+ * gpg-agent.c: Invoke ASSUAN_SYSTEM_PTH_IMPL.
+ (main): Call assuan_set_system_hooks and assuan_sock_init.
+ Fix invocation of assuan_socket_connect.
+
2009-09-23 Werner Koch <wk at g10code.com>
* command.c (register_commands) [HAVE_ASSUAN_SET_IO_MONITOR]:
Modified: trunk/common/ChangeLog
===================================================================
--- trunk/common/ChangeLog 2009-10-16 18:29:01 UTC (rev 5180)
+++ trunk/common/ChangeLog 2009-10-16 18:35:03 UTC (rev 5181)
@@ -1,3 +1,8 @@
+2009-10-16 Marcus Brinkmann <marcus at g10code.com>
+
+ * Makefile.am (libcommon_a_CFLAGS): Use LIBASSUAN_CFLAGS instead
+ of LIBASSUAN_PTH_CFLAGS.
+
2009-10-13 Werner Koch <wk at g10code.com>
* exechelp.c (gnupg_kill_process): New.
Modified: trunk/g13/ChangeLog
===================================================================
--- trunk/g13/ChangeLog 2009-10-16 18:29:01 UTC (rev 5180)
+++ trunk/g13/ChangeLog 2009-10-16 18:35:03 UTC (rev 5181)
@@ -1,5 +1,11 @@
2009-10-16 Marcus Brinkmann <marcus at g10code.com>
+ * AM_CFLAGS, g13_LDADD: Use libassuan instead of libassuan-pth.
+ * g13.c: Invoke ASSUAN_SYSTEM_PTH_IMPL.
+ (main): Call assuan_set_system_hooks.
+
+2009-10-16 Marcus Brinkmann <marcus at g10code.com>
+
* Makefile.am (AM_CFLAGS): Add $(KSBA_CFLAGS).
(g13_LDADD): Add $(KSBA_LIBS).
Modified: trunk/scd/ChangeLog
===================================================================
--- trunk/scd/ChangeLog 2009-10-16 18:29:01 UTC (rev 5180)
+++ trunk/scd/ChangeLog 2009-10-16 18:35:03 UTC (rev 5181)
@@ -1,3 +1,9 @@
+2009-10-16 Marcus Brinkmann <marcus at g10code.com>
+
+ * AM_CFLAGS, scdaemon_LDADD: Use libassuan instead of libassuan-pth.
+ * scdaemon.c: Invoke ASSUAN_SYSTEM_PTH_IMPL.
+ (main): Call assuan_set_system_hooks and assuan_sock_init.
+
2009-09-23 Marcus Brinkmann <marcus at g10code.de>
* command.c: Include "scdaemon.h" before <assuan.h> because of
Modified: trunk/agent/Makefile.am
===================================================================
--- trunk/agent/Makefile.am 2009-10-16 18:29:01 UTC (rev 5180)
+++ trunk/agent/Makefile.am 2009-10-16 18:35:03 UTC (rev 5181)
@@ -62,9 +62,9 @@
#endif
-gpg_agent_CFLAGS = $(AM_CFLAGS) $(LIBASSUAN_PTH_CFLAGS) $(PTH_CFLAGS)
+gpg_agent_CFLAGS = $(AM_CFLAGS) $(LIBASSUAN_CFLAGS) $(PTH_CFLAGS)
gpg_agent_LDADD = $(commonpth_libs) \
- $(LIBGCRYPT_LIBS) $(LIBASSUAN_PTH_LIBS) $(PTH_LIBS) \
+ $(LIBGCRYPT_LIBS) $(LIBASSUAN_LIBS) $(PTH_LIBS) \
$(GPG_ERROR_LIBS) $(LIBINTL) $(NETLIBS) $(LIBICONV)
gpg_agent_LDFLAGS = $(gpg_agent_res_ldflags)
gpg_agent_DEPENDENCIES = $(gpg_agent_res_deps)
Modified: trunk/agent/gpg-agent.c
===================================================================
--- trunk/agent/gpg-agent.c 2009-10-16 18:29:01 UTC (rev 5180)
+++ trunk/agent/gpg-agent.c 2009-10-16 18:35:03 UTC (rev 5181)
@@ -50,7 +50,6 @@
#include "gc-opt-flags.h"
#include "exechelp.h"
-
enum cmd_and_opt_values
{ aNull = 0,
oCsh = 'c',
@@ -276,6 +275,8 @@
static int check_for_running_agent (int silent, int mode);
/* Pth wrapper function definitions. */
+ASSUAN_SYSTEM_PTH_IMPL;
+
GCRY_THREAD_OPTION_PTH_IMPL;
static int fixed_gcry_pth_init (void)
{
@@ -593,6 +594,8 @@
assuan_set_malloc_hooks (&malloc_hooks);
assuan_set_assuan_log_prefix (log_get_prefix (NULL));
assuan_set_gpg_err_source (GPG_ERR_SOURCE_DEFAULT);
+ assuan_set_system_hooks (ASSUAN_SYSTEM_PTH);
+ assuan_sock_init ();
setup_libgcrypt_logging ();
gcry_control (GCRYCTL_USE_SECURE_RNDPOOL);
@@ -2217,7 +2220,7 @@
rc = assuan_new (&ctx);
if (! rc)
- rc = assuan_socket_connect (&ctx, infostr, pid);
+ rc = assuan_socket_connect (ctx, infostr, pid);
xfree (infostr);
if (rc)
{
Modified: trunk/common/Makefile.am
===================================================================
--- trunk/common/Makefile.am 2009-10-16 18:29:01 UTC (rev 5180)
+++ trunk/common/Makefile.am 2009-10-16 18:35:03 UTC (rev 5181)
@@ -87,7 +87,7 @@
if USE_DNS_SRV
libcommonpth_a_SOURCES += srv.c
endif
-libcommonpth_a_CFLAGS = $(AM_CFLAGS) $(LIBASSUAN_PTH_CFLAGS) $(PTH_CFLAGS)
+libcommonpth_a_CFLAGS = $(AM_CFLAGS) $(LIBASSUAN_CFLAGS) $(PTH_CFLAGS)
libsimple_pwquery_a_SOURCES = \
simple-pwquery.c simple-pwquery.h asshelp.c asshelp.h
Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac 2009-10-16 18:29:01 UTC (rev 5180)
+++ trunk/configure.ac 2009-10-16 18:35:03 UTC (rev 5181)
@@ -612,8 +612,8 @@
have_libassuan=yes,have_libassuan=no)
if test "$have_libassuan" = "yes"; then
have_libassuan=no
- AM_PATH_LIBASSUAN_PTH("$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION",
- have_libassuan=yes,have_libassuan=no)
+ AM_PATH_LIBASSUAN("$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION",
+ have_libassuan=yes,have_libassuan=no)
AC_DEFINE_UNQUOTED(GNUPG_LIBASSUAN_VERSION, "$libassuan_version",
[version of the libassuan library])
fi
@@ -1384,7 +1384,7 @@
die=yes
AC_MSG_NOTICE([[
***
-*** You need libassuan with Pth support to build this program.
+*** You need libassuan to build this program.
*** This library is for example available at
*** ftp://ftp.gnupg.org/gcrypt/libassuan/
*** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
Modified: trunk/g13/Makefile.am
===================================================================
--- trunk/g13/Makefile.am 2009-10-16 18:29:01 UTC (rev 5180)
+++ trunk/g13/Makefile.am 2009-10-16 18:35:03 UTC (rev 5181)
@@ -25,7 +25,7 @@
include $(top_srcdir)/am/cmacros.am
AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(KSBA_CFLAGS) \
- $(LIBASSUAN_PTH_CFLAGS) $(PTH_CFLAGS)
+ $(LIBASSUAN_CFLAGS) $(PTH_CFLAGS)
g13_SOURCES = \
g13.c g13.h \
@@ -42,6 +42,6 @@
be-truecrypt.c be-truecrypt.h
g13_LDADD = $(libcommonpth) ../jnlib/libjnlib.a ../gl/libgnu.a \
- $(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(LIBASSUAN_PTH_LIBS) $(PTH_LIBS) \
+ $(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(LIBASSUAN_LIBS) $(PTH_LIBS) \
$(GPG_ERROR_LIBS) $(LIBINTL)
Modified: trunk/g13/g13.c
===================================================================
--- trunk/g13/g13.c 2009-10-16 18:29:01 UTC (rev 5180)
+++ trunk/g13/g13.c 2009-10-16 18:35:03 UTC (rev 5181)
@@ -204,6 +204,8 @@
/* Begin Pth wrapper functions. */
+ASSUAN_SYSTEM_PTH_IMPL;
+
GCRY_THREAD_OPTION_PTH_IMPL;
static int fixed_gcry_pth_init (void)
{
@@ -441,6 +443,7 @@
/* Prepare libassuan. */
assuan_set_assuan_log_prefix (log_get_prefix (NULL));
assuan_set_gpg_err_source (GPG_ERR_SOURCE_DEFAULT);
+ assuan_set_system_hooks (ASSUAN_SYSTEM_PTH);
/* Setup a default control structure for command line mode. */
Modified: trunk/scd/Makefile.am
===================================================================
--- trunk/scd/Makefile.am 2009-10-16 18:29:01 UTC (rev 5180)
+++ trunk/scd/Makefile.am 2009-10-16 18:35:03 UTC (rev 5181)
@@ -27,7 +27,7 @@
include $(top_srcdir)/am/cmacros.am
AM_CFLAGS = $(LIBGCRYPT_CFLAGS) \
- $(KSBA_CFLAGS) $(LIBASSUAN_PTH_CFLAGS) $(PTH_CFLAGS)
+ $(KSBA_CFLAGS) $(LIBASSUAN_CFLAGS) $(PTH_CFLAGS)
card_apps = app-openpgp.c app-nks.c app-dinsig.c app-p15.c app-geldkarte.c
@@ -42,7 +42,7 @@
scdaemon_LDADD = $(libcommonpth) ../jnlib/libjnlib.a ../gl/libgnu.a \
- $(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(LIBASSUAN_PTH_LIBS) $(PTH_LIBS) \
+ $(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(LIBASSUAN_LIBS) $(PTH_LIBS) \
$(LIBUSB_LIBS) $(GPG_ERROR_LIBS) \
$(LIBINTL) $(DL_LIBS) $(NETLIBS) $(LIBICONV)
@@ -60,7 +60,7 @@
#sc_copykeys_LDADD = \
# ../jnlib/libjnlib.a ../common/libcommon.a \
# ../common/libsimple-pwquery.a \
-# $(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(LIBASSUAN_PTH_LIBS) $(PTH_LIBS) \
+# $(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(LIBASSUAN_LIBS) $(PTH_LIBS) \
# $(LIBUSB_LIBS) \
# -lgpg-error @LIBINTL@ @DL_LIBS@
#
Modified: trunk/scd/scdaemon.c
===================================================================
--- trunk/scd/scdaemon.c 2009-10-16 18:29:01 UTC (rev 5180)
+++ trunk/scd/scdaemon.c 2009-10-16 18:35:03 UTC (rev 5181)
@@ -53,7 +53,6 @@
#include "mkdtemp.h"
#include "gc-opt-flags.h"
-
enum cmd_and_opt_values
{ aNull = 0,
oCsh = 'c',
@@ -204,6 +203,8 @@
static void handle_connections (int listen_fd);
/* Pth wrapper function definitions. */
+ASSUAN_SYSTEM_PTH_IMPL;
+
GCRY_THREAD_OPTION_PTH_IMPL;
static int fixed_gcry_pth_init (void)
{
@@ -410,6 +411,8 @@
assuan_set_malloc_hooks (&malloc_hooks);
assuan_set_assuan_log_prefix (log_get_prefix (NULL));
assuan_set_gpg_err_source (GPG_ERR_SOURCE_DEFAULT);
+ assuan_set_system_hooks (ASSUAN_SYSTEM_PTH);
+ assuan_sock_init ();
setup_libgcrypt_logging ();
gcry_control (GCRYCTL_USE_SECURE_RNDPOOL);
More information about the Gnupg-commits
mailing list