[svn] gpgme - r1480 - trunk/src
svn author marcus
cvs at cvs.gnupg.org
Thu Jun 10 19:29:44 CEST 2010
Author: marcus
Date: 2010-06-10 19:29:43 +0200 (Thu, 10 Jun 2010)
New Revision: 1480
Modified:
trunk/src/ChangeLog
trunk/src/gpgme-tool.c
Log:
2010-06-10 Marcus Brinkmann <marcus at g10code.de>
* gpgme-tool.c (gpgme_server): Use special hack for Windows CE to
get at stdin and stdout.
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2010-06-10 16:13:14 UTC (rev 1479)
+++ trunk/src/ChangeLog 2010-06-10 17:29:43 UTC (rev 1480)
@@ -1,5 +1,8 @@
2010-06-10 Marcus Brinkmann <marcus at g10code.de>
+ * gpgme-tool.c (gpgme_server): Use special hack for Windows CE to
+ get at stdin and stdout.
+
* engine-gpgsm.c (gpgsm_new): Translate returned achild_fds back
to child_fds.
Modified: trunk/src/gpgme-tool.c
===================================================================
--- trunk/src/gpgme-tool.c 2010-06-10 16:13:14 UTC (rev 1479)
+++ trunk/src/gpgme-tool.c 2010-06-10 17:29:43 UTC (rev 1480)
@@ -2940,8 +2940,13 @@
/* We use a pipe based server so that we can work from scripts.
assuan_init_pipe_server will automagically detect when we are
called with a socketpair and ignore FIELDES in this case. */
+#ifdef HAVE_W32CE_SYSTEM
+ filedes[0] = ASSUAN_STDIN;
+ filedes[1] = ASSUAN_STDOUT;
+#else
filedes[0] = assuan_fdopen (0);
filedes[1] = assuan_fdopen (1);
+#endif
err = assuan_new (&server.assuan_ctx);
if (err)
log_error (1, err, "can't create assuan context");
More information about the Gnupg-commits
mailing list