aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpgme-tool.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-10-31 11:27:27 +0000
committerWerner Koch <[email protected]>2018-10-31 11:35:14 +0000
commit3c04dea3ecebed35208f6b631b2e8b04222ea432 (patch)
treeb8dbdf9bbceed60e1b2f9b4615e0a3d1dad9d550 /src/gpgme-tool.c
parentw32: Remove cruft in w32-io from WindowsME times. (diff)
downloadgpgme-3c04dea3ecebed35208f6b631b2e8b04222ea432.tar.gz
gpgme-3c04dea3ecebed35208f6b631b2e8b04222ea432.zip
w32: Remove all support for WindowsCE
* configure.ac: Remove WindwosCE support. * contrib/: Remove all; it was only used for WindowsCE. * src/w32-ce.c, src/w32-ce.h: Remove files. * src/Makefile.am (system_components): Remove these files. * src/ath.c, src/ath.h: Remove W32CE support. * src/data-compat.c (gpgme_data_new_from_filepart): Ditto. (gpgme_data_new_from_file): Ditto. * src/debug.c (debug_init, _gpgme_debug): Ditto. * src/gpgme-tool.c (gpgme_server): Ditto. (main): Ditto. * src/priv-io.h: Do not include w32-ce.h. * src/util.h: Remove WindowsCE support. * src/w32-io.c: Ditto. * src/w32-util.c: Ditto. * src/debug.h (TRACE_SUC4): New. -- There is no more hardware to test our code, the support for Windows CE terminated along time ago. Note that our code worked only with the old WindowsCE with that overall system limit of 31 processes. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/gpgme-tool.c')
-rw-r--r--src/gpgme-tool.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/gpgme-tool.c b/src/gpgme-tool.c
index e7a7a6f3..5c34b0b1 100644
--- a/src/gpgme-tool.c
+++ b/src/gpgme-tool.c
@@ -3282,15 +3282,11 @@ gpgme_server (gpgme_tool_t gt)
gt->write_data_hook = &server;
/* 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
+ * assuan_init_pipe_server will automagically detect when we are
+ * called with a socketpair and ignore FILEDES in this case. */
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");
@@ -3439,10 +3435,5 @@ main (int argc, char *argv[])
if (needgt)
gpgme_release (gt.ctx);
-#ifdef HAVE_W32CE_SYSTEM
- /* Give the buggy ssh server time to flush the output buffers. */
- Sleep (300);
-#endif
-
return 0;
}